How to add an ad below logo

Posted in: Newsmag
Post count: 46

Hi,

I would like to add a banner ad 970×90 below the logo (i’m using header style 1). You can see what i would like in this sreenshot.

Thank you in advance !

Post count: 6535

Hi

You can use one of theme’s ad-spots to display the ad. First insert the html ad’s code in one of custom ad-spots from theme panel > ads then use do_shortcode() function to display the ad below the logo like here: http://screencast.com/t/p9KCCPun

<div class="new-ad">
<?php echo do_shortcode('[td_block_ad_box spot_id="custom_ad_1"]'); ?>
</div>

Add this css in theme panel > custom code > custom css:

.new-ad{
clear: both;
}

I’ve used custom ad 1 for this example but you can use any custom ad, just adapt the shortcode. For example if you use custom ad 5 the shortcode will be: td_block_ad_box spot_id="custom_ad_5"
The result should be like here: http://screencast.com/t/HYBdDZM0W0h

Thanks!

  • This reply was modified 10 years by Andrei L..
Viewing 2 posts - 1 through 2 (of 2 total)
The forum ‘Newsmag’ is closed to new topics and replies.