- TutorialsDefault Block Settings Guide
- NewspaperWP Rocket and Newspaper Theme: Optimization Guide
- TutorialsFrom WPBakery to tagDiv Composer
- TutorialsOffset Feature
- TutorialsWhat is Ajax preloading?
I have done the following:
1) I added the code
2) custom_Ad_3 I added the code, which incidentally is not adsense, is another advertising company does like ?, I say this because nothing appears


-
This reply was modified 10 years by
posonty.
Hello posonty,
If you want to add an ad after each posts using the Block 13, you will have to edit the td_block_13.php and use the do_shortcode method, using the Custom Ad 1 field. So, if you want to do this, please follow the next steps -> http://screencast.com/t/kIsAX0zAxk8E and the result you should see here -> http://screencast.com/t/qltnTvUbN
If you refer to something else, please provide more details.
Thanks for the message!
Hi
Please make sure that your server meets the requirements specified in our documentation: https://forum.tagdiv.com/newsmag-requirements-for-newsmag/ and also check if the parameters from system status have the values indicated here: https://forum.tagdiv.com/system-status-parameters-guide/
From our reports the theme requires more resources when on the page are loaded blocks which uses ajax pagination. When one of next/prev or load more buttons are clicked the theme make a request at admin-ajax.php file and the server must handle more requests.
Also there are many factors which can influence how your server handle the site. Try to configure the site in a very simple way so the queries number to be as low as possible. Try deactivate all plugin except Visual Composer, clear all caches, purge cdn files if you’re using then check for a period of time how site is running.
We also recommend to use a plugin for cache. The theme is tested and works fine with WP Super Cache: https://forum.tagdiv.com/cache-plugin-install-and-configure/ You could also use a cdn service and mysql query cache for a better optimizations and fewer queries: https://forum.tagdiv.com/cloudflare-cdn/ – http://dev.mysql.com/doc/refman/5.7/en/query-cache.html
I hope this helps!
Thanks!
Hi
The above code was intent to work with theme’s slide block. I have checked your site and didn’t found any slide. If you’re referring to a different element provide more detail about it and maybe I can help.
Thanks!
I see, thank you. loop.php is easy – we can just add
if ( in_category( 'skipped category name 1' ) || in_category( 'skipped category name 2' ) ) :
continue;
endif;
after this line
while ( have_posts() ) : the_post();
I wonder how to fix front-page.php. We need to use something like
[td_block_big_grid_mob_1 sort="featured" category_ids="-33,44"]
instead of currently used
[td_block_big_grid_mob_1 sort="featured"]
but it seems category_ids isn’t supported attribute… Is there any hint to workaround?
thx
jiri
Good Morning.
Please could you be so kind as to help me, telling me what I have php template to include adsense code for advertising aperezca here:

I use the Block 13

Thank you very much for the help!
Hello pixelonline,
Thank your for your interests in our theme.
1)Please notice that all of these sections are Blocks and if you want to control the posts which will appear in them you will have to check the Block Settings. For more information about this, please consult our documentation here -> https://forum.tagdiv.com/block-settings-tutorial/
2)Please provide more details about ‘Latest Review’ and ‘Movie Review’ so I can identify them. I suppose that are titles of the block and you can change them from Block settings.
Thanks for your understanding!
Hi,
I see you have the block sort random posts. Please change this sorting to latest and that should do it. Please follow this guide to learn more about block setting: https://forum.tagdiv.com/block-settings-tutorial/
Thank you!
Hello tomawebdev,
As you can see, the Visual Composer has an important role in our theme because it is a required plugin. Surely, you can use the theme without this composer but unfortunately, you do not really have many options to customize the theme. Without this plugin, you can add only the text and images, without Blocks/Modules and other feature which makes the theme to be different than others.
Thanks for your understanding!
Hello tintin,
If you want to add an ad to the bottom of your smart list 5, you will have to use a bit of code and add this in td_smart_list_5.php in order to achieve as you wish. Please follow the steps, like this -> http://screencast.com/t/BcraJMrzP8QY The code which you will need is below ->
$buffy .= do_shortcode('[td_block_ad_box spot_id="custom_ad_1"]'); Please ensure that you have added your desired ad code in Custom Ad 1 from your panel, like this -> http://screencast.com/t/Nb4tQKkFr8D and the result you should see here -> http://screencast.com/t/Zh2tB3lHL
Hope this helps!
If is not what you mean, please provide more details.
Thanks.
I added this to top-menu.php
// show the date and time if needed
if (td_util::get_option(‘tds_data_top_menu’) == ‘show’) {
$tds_data_time = td_util::get_option(‘tds_data_time_format’);
if ($tds_data_time == ”) {
$tds_data_time = ‘l, F j, Y’;
}
echo'<div class=”td_data_city”>’;
echo’San Luis Rio Colorado Sonora, Mexico’;
echo'</div>’;
echo ‘<div class=”td_data_time”>’;
echo date_i18n(stripslashes($tds_data_time));
echo ‘</div>’;
}
and this to css
.td_data_city {
display: inline-block;
margin-right: 690px;
}
please check the result is moving the social media icons to the top
wordpress.diarionoticias.info
I activated the WP 2015 theme for a minutes to test something and now all my sidebars are gone!!!! They are all blank in the widget area. I restored the Theme and Plugins from back up but still no sidebars. This was DAYS of work..picking all the blocks, filling in each post and categories, etc.
1) is there any way to restore these settings?
2) How did this happen? It didn’t happen for sidebars that are not part of NP theme – just NP. And never in all the themes I’ve used has switching out themes erased all the sidebar widgets?
Please, please, please help me restore these. Thank you.
Hi,
I added 4 blocks in the default sidebar widget but it doesn’t show up on the post page.
screenshot of default sidebar widget
http://prntscr.com/bjq1uk
screenshot of layout template setting from Panel
http://prntscr.com/bjq2cd
screenshot of layout post setting from Panel
http://prntscr.com/bjq2w1
screenshot of the post setting within the post itself
http://prntscr.com/bjq50t
Please help
Thank you
Hi,
Can someone tell me how to make the news block on our homepage http://www.metroairportnews.com, display the news by latest date? The code below is what is currently being used.
[vc_column width="2/3"][td_block_2 limit="6" custom_title="METROPOLITAN AIRPORT NEWS" header_color="#e73f27" td_ajax_filter_type="td_category_ids_filter" td_ajax_filter_ids="" td_filter_default_txt="All" ajax_pagination="next_prev" sort="" category_ids="42" sort="random_posts"][/vc_column]
I have inserted a Video block using Video Composer on my Home Page but for some reason it won’t pick up the theme style for the Block header and instead appears just black and without an underline. How can I fix this?
I’m not sure how to attach a screenshot for you to see but it is my homepage at http://her.co.nz and the block title is WE’RE WATCHING
I am trying to replicate the layout from this demo page:
http://demo.tagdiv.com/newspaper_recipes/category/recipes/
Instead of showing the author, date, and comments, it shows the category above the post title. How can I do this?
Also, is it possible to hide the author, date, views, comments, and social media buttons at the top of posts within certain categories?
Thanks.
Hi
To add read more or block 11 you have to edit td_module_10.php file like here: http://screencast.com/t/njpr9mQSI – http://screencast.com/t/IM6rdJr6
Thanks!
Hello mzirafos,
Now, upon further investigation, I was able to understand what you mean…I think that… Please do not confuse the Read More Button tag with the Read More Button from Block 13 because these are two different elements. If you add this read more tag there, the theme will not interpret because the main function which brings this text -> http://screencast.com/t/i6rETdzX is get_excerpt() and if you want to decrease the length of it, you will have to consult the Theme panel->Excerpts section like this -> http://screencast.com/t/QTfqr3sAtjYH For more information about this, please consult here -> https://forum.tagdiv.com/excerpts-introduction/ If you want as the Read More Button to work, you will have to use module 15 because only this will use the content and the Read More Button will work as properly.
Hope this helps!
Thanks for your understanding!
Hi
Try this css in theme panel > custom code > custom css: http://screencast.com/t/DM8jfuJH
@media (max-width: 767px) {
.td-header-top-menu {
display: block;
}
.top-bar-style-1 .td-header-sp-top-widget {
float: none;
display: table;
margin-left: auto;
margin-right: auto;
}
}
Thanks!
@post #74641
Hi,
I wanted to add the read more button to block 11. Can I use this same process? Which td_module do I have to modify?
Hi,
The comment count can be removed with this code:
.td_block_16 .td-module-comments{
display:none!important;
}
Thank you!
Hi,
seems we are getting there, one more thing, how do I remove comments count from Block 16?
Thank!
Hi,
Unfortunately blocks cannot detect the post category. Blocks can be filtered from block settings and added to the sidebar from the widgets area but there is no option to detect the current post and grab the category as a post filter. This is done by the related articles section but that element was created that way. Other blocks do not have this option unfortunately.
Thank you!
Hello andree360,
If you want to add some images to your right side for your category pages, please notice that you will have to create a custom sidebar and then you can enter a text block with your desired images, like this -> http://screencast.com/t/ZkfsmQWw (here you create a new custom sidebar which appears in Widgets area) -> http://screencast.com/t/vxSNWwIIUnrm Now, you will have to create your shortcode, using the Visual Composer for Text Block, like this -> http://screencast.com/t/WCdAFfAZsMk All of them will be loaded in that ROW in Visual Composer and then you will have to switch to the Classic Mode in Text mode and you have to copy all the shortcode which is generated in this area, like this -> http://screencast.com/t/sAzZqi8t1t and then you must paste that shortcode in your text block from your custom sidebar in Widgets Area, like this -> http://screencast.com/t/VcvQrUu1 and the result you should see here -> http://screencast.com/t/YemVmzNxRDCP
Hope this helps!
Thanks for your understanding!
thank you for your reply i simple manage to choose post are displayed with this code:
<?php echo do_shortcode(‘[vc_row][vc_column][td_block_16 custom_title=”” post_ids=”4, 22, 13, 44, 47″ limit=”5″][/vc_column][/vc_row]‘); ?>
using post_ids=”” command