Search Results for 'block'

Results from the Forum
Bryson T
tagDiv Member

Correction: I was able to copy the shortcodes for my homepage from the dev site to the main site, but I still cannot get VC 4.3.5 or 4.5.3 to recognize the Newspaper block shortcodes.

Alin [tagDiv]
tagDiv Staff

Hi,

It usually happens when loading the font file (which contains those icons) from another host/url. I have checked your browser’s console and you have an error – http://screencast.com/t/GMbysnjpNl7
The solution would be to load them from the same url as the site or try this solution – http://webmasters.stackexchange.com/questions/71630/font-blocked-from-loading-by-cross-origin-resource-sharing-policy-no-access-co

Thanks!

Marius
tagDiv Staff

Hi,
You need to edit here for the js: http://screencast.com/t/AtcEqjuaide

I don’t know about google font how to be removed, but you can try to search on google about that:
https://wordpress.org/support/topic/still-getting-eliminate-render-blocking-js-and-css
https://www.igvita.com/2014/01/31/optimizing-web-font-rendering-performance/

Alin [tagDiv]
tagDiv Staff

Hi,

Your page on mobile is fine – http://screencast.com/t/5GOa0kinFCUR The results and screenshot may be incorrect. If your page is not displayed fine you will have to follow this guide – https://developers.google.com/webmasters/mobile-sites/mobile-seo/common-mistakes/blocked-resources?hl=en-US&utm_source=MFT&utm_campaign=MFT&utm_medium=incoming-link

Thanks!

Bryson T
Participant
#0

Having issues. Not my first rodeo with Newspaper. I did not upgrade from v4 of Newspaper to v6.1 – fresh database.

Uploaded Newspaper, Newspaper Child, activated Newspaper Child then VC and TD Social Counter – in that order. I’m getting the VC Menu link for its settings in the admin menu and when creating a page the builder does not show any Newspaper blocks at all. VC is showing me the demo homepage templates loaded into it by Newspaper, but when I use them, the blocks are not editable, only sortable.

Front-end of the site is loading fine. Even uses the blocks from the theme when I use a template to get it rolling, but I can’t edit the settings for it, obviously. Even tried installing and activating the API plugin to see if it would help, but no go.

This is for my main site. I’ve been testing for a few days on my development site, which is located at a subdomain of my main site, and everything has been working BEAUTIFULLY there with Newspaper 6. Really impressed with the improvements. Can’t figure out what’s making VC dumb at the moment.

What’s the malfunction?

Marius
tagDiv Staff

Hi,
On each block you can set what category you want to display as subcategory dropdown. Just edit a block and set the categories ID’s that you want to display: http://screencast.com/t/8kI7zhFGmV

Result: http://screencast.com/t/ZctHcklbC1c

You can read more here about block settings: https://forum.tagdiv.com/block-settings-tutorial/

Thanks for the message!

shubhra
tagDiv Member

Since I could use this too I decided to give it a try. I was able to get custom taxonomy names in the ajax filter dropdown but I was unable to filter the block posts after the taxonomy selection from the dropdown. Maybe a little direction from tagDiv as to what changes are required in td-data_source/wp_query to make the filter work.

gregy1403
tagDiv Member

In Visual Composer, there is a setting where you check what to include into VC. Then later in block setting you have to enter CPT name in Post type field and voila … now i just have to get CPT categories to work .. here i’m stucked

You can see at http://www.cele.si/new .. whole site is now made of CPT .. yet not sorted by categories 🙂

xlive
tagDiv Member

Thanks for the reply.

but it’s a completely new installation. The layout messes up on certain blocks, this also happens on another block http://s7.postimg.org/hybq2d1kb/Screen_Shot_2015_06_28_at_16_43_08.png

gregy1403
tagDiv Member

Hi

Back again, this time with great news 🙂

Visual Composer does display CPT! This is our test site –> http://www.cele.si/new/td_d_slug_10/

All we need to do now is, to be able to pick up categories of CPT when editing block in Visual Composer. At the moment it shows only post categories.

Any idea?

Thank you

pedropapito
tagDiv Member

Here the code. Help me please!

[vc_row full_width="" parallax="" parallax_image=""][vc_column width="1/1"][td_block_trending_now navigation=”” style=”” category_id=”” category_ids=”” tag_slug=”” autors_id=”” installed_post_types=”” sort=”” limit=”5″ offset=””][td_block_big_grid_3 td_grid_style="td-grid-style-1" tag_slug="destaque"][/vc_column][/vc_row][vc_row full_width="" parallax="" parallax_image="" el_class="td-ss-row"][vc_column width="2/3"][td_block_1 custom_title="ENTRETENIMENTO" header_color="#e29c04" category_id="286" limit="5" td_filter_default_txt="Tudo"][td_block_2 custom_title="NOTÍCIAS" header_color="#4caf50" limit="6" td_filter_default_txt="Tudo" ajax_pagination="next_prev" category_ids="47,49,55,56"][td_block_1 custom_title="POLÍCIA" header_color="#a50000" category_id="54" limit="5" td_filter_default_txt="Tudo" ajax_pagination="next_prev"][td_block_15 custom_title=”ESPORTES” header_color=”#50992f” category_id=”53″ limit=”3″ td_filter_default_txt=”Tudo”][/vc_column][vc_column width="1/3"][td_block_15 custom_title=”BLOGS” category_id=”62″ limit=”4″ td_filter_default_txt=”Tudo”][td_block_social_counter custom_title="SIGA-NOS" facebook="clickcamboriu" twitter="clickcamboriu" youtube="canalclickcamboriu" open_in_new_window="y" instagram="clickcamboriu"][td_block_ad_box spot_id="sidebar" spot_title="- Publicidade -"][/vc_column][/vc_row][vc_row full_width="" parallax="" parallax_image=""][vc_column width="1/1"][td_block_big_grid_5 custom_title=”” td_grid_style=”td-grid-style-5″ category_id=”1030″][/vc_column][/vc_row][vc_row full_width="" parallax="" parallax_image=""][vc_column width="1/3"][vc_widget_sidebar sidebar_id="td-agenda"][/vc_column][vc_column width="1/3"][vc_widget_sidebar sidebar_id="td-footer-2"][/vc_column][vc_column width="1/3"][vc_widget_sidebar sidebar_id="td-footer-3"][/vc_column][/vc_row]

careongo
tagDiv Member

Hi team,

Thanks for your reply. Ya it is working. But I had some other query. 1) I want to hide the field of Name, Email and Webiste. I just want the comment field to appear. Please help me with that.

2) Also, I want to keep the comments section just at the bottom of the article i.e. before related articles..post which I want to place the block of related articles. Please help.

3) I am facing problems with the tweet button also. When somebody tweets, the no. of tweets do not increase. I tried many times but the tweets just do not increase. Even refreshing the page do not help.

Your help will be greatly appreciated.

Thanks,
RiseUp

Arafat
Blocked
#0

Hello, I want create Block for category base. It’s possible.

For Example : I have already Lifestyle category & Lifestyle subcategory on my website, when add block only show Lifestyle & subcategory. Not show other category and sub-category. How to create it’s

Thanks!

Pippa
Participant
#0

I ran my site through Google webmasters mobile friendly test this morning, and it passed, but with a warning

This page uses one resource which is blocked by robots.txt. The results and screenshot may be incorrect.

For optimal rendering and indexing, always allow Googlebot access to the JavaScript, CSS, and image files used by your website so that Googlebot can see your site like an average user. If your site’s robots.txt file disallows crawling of these assets, it directly harms how well our algorithms render and index your content. This can result in suboptimal rankings.”

But according to this page http://pippamattinson.com/robots.txt

The only thing disallowed in my robot.txt page is wp-admin. Should I ignore the warning message?

Thanks

Pippa

AzharNadeem
tagDiv Member

@Marius..

Yes…removing -css portion did it.Now I have 1 blocking script and 3 blocking css resources. Blocking script belongs to WP Pro Advertising System while CSS includes (i) Google Fonts (ii) JS Composer and (iii)Main theme stylesheet.

Can you please guide me
i. How to make Javascript move to footer
ii. Can I (should I) remove any of the the three blocking CSS resources?

Regards
Azhar Nadeem

nf_prt
Participant
#0

Hi,

posting this for those who might need this too and also for those who know way better than me, so that they hopefully have a check at this and spot eventual flaws or ways to improve.

this came up along with the need I had to mix different post types in the same slider. On my front page I have a slider that shows my selection of featured posts. I used to achieve this in NP4 using revslider, which allows to select specific posts to show up. But I decided to drop revslider plugin in NP6 so I made a little change to allow me to specify a group of posts to show up in a block.

– Works for blocks and slider (might work with grids and other elements but didn’t test with them)
– Does not work with pagination or ajax filter. I just wanted to show 4-6 posts so I didn’t need pagination and didn’t care to make it in a way that pagination would work. And there’s nothing to filter when you individually select all the posts shown. This means it WILL NOT WORK ON BLOCK THAT HAVE PAGINATION BY DEFAULT(like block 15 for example)

1. Add the filter input field to the block settings panel.
add this to file Newspaper\includes\td_config.php

		array(
				"param_name" => "pst_ids",
				"type" => "textfield",
				"value" => '',
				"heading" => 'Post ID filter:',
				"description" => "Filter multiple posts by ID. Enter here the post IDs separated by commas (ex: 13,23,18)",
				"holder" => "div",
				"class" => "",
                'group' => $group
			),

img1

2. Make the theme read that filter input
add this to file Newspaper\includes\wp_booster\td_data_source.php
'pst_ids' => '',
img2

3. Send that filter to the query to populate the block with the desired posts
add this to file Newspaper\includes\wp_booster\td_data_source.php

        if (!empty($pst_ids)) {

            $wp_query_args['post__in'] = explode (',', $pst_ids);
        }

img3

Note: if you wish to mix up regular posts and custom posts types, don’t forget to insert them in the Post Type filter.

Cheers!

Alin [tagDiv]
tagDiv Staff

Hi,

You will have to add your code in header.php where the body tag is – http://screencast.com/t/ukcovv7i8h and the other code where the advert will appear. The theme ad system was designed for adsense code but you can also try to add it in Theme Panel > Ads section – http://screencast.com/t/IckVfivoLW depending where you want to display it, please also check documentation – https://forum.tagdiv.com/header-ad/ For pages you can use Ad box block to display your advert in the content – http://screencast.com/t/EMPFNvzf

Hope this helps!

stephanwhelan
Participant
#0

Hi – does anyone have the SEO Friendly Images plugin work correctly with the Featured Images, Mega-Menus and VC blocks? Seems to work on normal post images but doesn’t work on the rest of it.

Does anyone else use that plugin and does it work?

Alin [tagDiv]
tagDiv Staff

Hi,

Please remove the space between .td_block_big_grid_1 and .td-grid-style-1 sorry!

.home .td_block_big_grid_1.td-grid-style-1 .td-module-thumb a:last-child:before {
background: -moz-linear-gradient(top,rgba(0,0,0,0) 0%,rgba(0,0,0,0.3) 100%);
background: -webkit-gradient(linear,left top,left bottom,color-stop(0%,rgba(0,0,0,0)),color-stop(100%,rgba(0,0,0,0.3)));
background: -webkit-linear-gradient(top,rgba(0,0,0,0) 0%,rgba(0,0,0,0.3) 100%);
background: -o-linear-gradient(top,rgba(0,0,0,0) 0%,rgba(0,0,0,0.3) 100%);
background: -ms-linear-gradient(top,rgba(0,0,0,0) 0%,rgba(0,0,0,0.3) 100%);
background: linear-gradient(to bottom,rgba(0,0,0,0) 0%,rgba(0,0,0,0.3) 100%);
}

Thanks!

Alin [tagDiv]
tagDiv Staff

Hi,

The theme doesn’t have an option to display ads in the blocks, you will need custom work for this and unfortunately we cannot provide any type of custom work at this time.
You can try this to filter by tag articles to appear in Big Grid – http://screencast.com/t/nEh9mafks so only those specific post will appear there – http://screencast.com/t/5QRYk1xGjbt
To control posts on a specific block you ca also try this solution, maybe will help – https://forum.tagdiv.com/topic/top-posts/

If you don’t know how to do it I suggest to hire a freelancer to do it for you from sites like – http://studio.envato.com/

Thanks!

Alin [tagDiv]
tagDiv Staff

Hi,

Unfortunately the theme doesn’t have an option to add a different background on post pages. On your articles will be added the background image that is set for primary category, sorry. If you want to block the background image to appear on your post you can try to alter td_background.php and stop the background to appear on single pages check this condition – http://screencast.com/t/kKUkSibIIjM

Thanks!

Lucian
tagDiv Staff

Hi,

You can use theme’s blocks for this or a page with the latest articles section template and set the loop filter to random posts, like this: http://screencast.com/t/oDNA1pysB or blocks settings to filter posts from all categories and set the sort to random posts like this: http://screencast.com/t/sMtISHGU7

You can find an more detailed info of our blocks settings here: https://forum.tagdiv.com/block-settings-overview/ and these are theme’s blocks: https://forum.tagdiv.com/blocks/ and these are the available page templates: https://forum.tagdiv.com/page-templates-newsmag/
Let us know how it goes!

Thanks

Emil G
tagDiv Staff

Hi,

The old function was just hiding the date, we received requests from users to make it disappear when it’s disabled. The old function looked like this – http://screencast.com/t/Ll7OIC4L – we added a new condition – http://screencast.com/t/Hg8gLAzE

The date function is used on all blocks and post pages, it’s normal for the date on blocks/modules to disappear when your are on that specific custom post. An alternative would be to duplicate this function, for example name it get_date_two() and replace it on all module files or on single templates. This way you will have get_date() on modules and get_date_two() on post templates and you can control each are more easily. – http://screencast.com/t/66vdh2uiWhttp://screencast.com/t/hGw3hkKxmOo

Thank you!

  • This reply was modified 11 years by Emil G.
modernmavens
tagDiv Member

Thanks Alin. I found the solution from the same thread this morning as well :). Fixed it. Thank you very much.
On the side note, how do I remove author’s name and date from the big left block?

Alin [tagDiv]
tagDiv Staff

Hi,

We have changed the shortcode in version 6, but you can always find out and copy the shortcode of any block from the page. Just add Ad Box to a page and change to Classic Mode – http://screencast.com/t/reNzpiB0http://screencast.com/t/D59yB6D2m57
So the shortcode use don version 6 is:

[td_block_ad_box spot_id="custom_ad_2"]

Thanks!

Viewing 25 results - 35,451 through 35,475 (of 39,816 total)