Thank you for your response Luclan, and Happy Unification day.
Ads Configuration:

Ad.php Code:
<div class="td-header-rec-wrap">
<?php
$tds_header_ad_title = td_util::get_option('tds_header_ad_title');
// show the header ad spot
if (is_category('Food')){
echo do_shortcode('[td_block_ad_box spot_id="custom_ad_1"]');
}
echo td_global_blocks::get_instance('td_block_ad_box')->render(array('spot_id' => 'header', 'spot_title' => $tds_header_ad_title)); ?>
</div>
Thank you in advance.
Hi Catalina,
Nothing is displaying on the page http://giblad.com/category/food/ unfortunately.
It doesn’t seem to be working.
Thank you
Hi,
Use it like this: https://www.screencast.com/t/pr9kxErSRGWv > http://pastebin.com/w9mw7cgf
ex: https://www.screencast.com/t/TMjgnYMbubqx
Thanks!
Lucian C
Thank you Lucian, sorry to disturb you again…
I have tried that now and I can see the ad! But it’s very small as per this screenshot: https://postimg.org/image/78wj7npcd/
Here’s the original size: http://giblad.com/wp-content/uploads/2017/01/GIB-LAD3.jpg
Can you help? Thanks for all your assistance
it works.
I can insert the banner in all the articles of the category?
ex:
site.com/fashion/ Ok it works [custom_ad_1]
site.com/fashion/article1 now it does not work [custom_ad_1]
site.com/fashion/article2 now it does not work [custom_ad_1]
site.com/fashion/article3 now it does not work [custom_ad_1]
-
This reply was modified 9 years by
giulian curl.
-
This reply was modified 9 years by
giulian curl.
<?php
if (in_category(array(‘salute’))){
echo do_shortcode(‘[td_block_ad_box spot_id="custom_ad_1"]‘);
}
else{
locate_template(‘parts/header/ads.php’, true);
}
?>
Use header-style-7, and with this code works fine.
-
This reply was modified 9 years by
giulian curl.
Hello giulian curl,
You should use the above method which has presented above. I have tested on my side and work as properly.
-> https://www.screencast.com/t/Ji15dhlRbGlE Try using this method because it is tested and work as expected.
Thanks for your understanding!
Hi, how are you? Can we do the same for the footer? Because if I got to the Header directory I will find the ads.php file, but if I go to the footer’s directory, there is no Ads.php file.
Thanks!
Hello fernando,
Please notice that Footer section does not have any ads implemented, sorry! If you want to add some ads in this section, you should use the Ads Box from the Widgets section and add it in Footer1,2,3, according to our Footer template used by you. If you want to apply some rules for your footer section, you should edit the footer.php core file. Also, you can use the do_shortcode method for insert some ads in this regard, according to the following documentation here -> https://developer.wordpress.org/reference/functions/do_shortcode/
Notice that is not a simple task and if you are not aware of the steps which are needed to take in this regard, please consider hiring a freelancer/developer to help you because we cannot provide custom services at the moment, sorry!
Hope this helps!
Thanks fro your understanding!
