Header Ad

Posted in: Newsmag
Post count: 49

Hi,

I would like to replace the theme panel header ad with custom ad using a shortcode. Where can I add this code?

I am using a plugin where I can choose which category I like to designate the shortcode ad.

Knowing where to make this change will be very helpful

Thanks

Post count: 6535

Hi

You can use the shortcode generated by the plugin in header ad box from theme panel, the theme will run do_shortcodes() function on the shortcode: https://forum.tagdiv.com/ads-system-full-guide/

Thanks!

Post count: 49

Hi Andrei,

I posted DFP code into the theme panel ad boxes and the padding for the header and sidebar ads are off.

Can you take a look and see why the ads are not padded correctly?

http://goo.gl/WOX80k

Post count: 6535

Hi

The theme it’s designed to handle just adsense, img/flash banners ad codes you can find a detailed explanation in this regard in our ads guide here: https://forum.tagdiv.com/ads-system-full-guide/

We recommend using those div’s from our docs to place other types of banner and the padding property it’s set on img tags so because you’re using a different ad system than ad-sense the theme’s css it’s applied only on ad classes, not to the ad content.

You can also try to use a plugin to render your ad code like suggested in the documentation.

Try this custom css to padding the header and sidebar ads:

.td-header-sp-ads .td-a-rec {
padding-top: 10px;
padding-bottom: 10px;
}
.td-a-rec-id-sidebar{
padding-left: 20px;
}

You can modify the values as you like, here id the ruslt: http://screencast.com/t/FqZ8Mb8r3z

Thanks!

Post count: 49

Thanks for the explanation. Looks like the issue is with the “sidebar ad” ad space.

I used custom ad # 3 and it works perfectly. Thanks for the header ad css that worked as well.

Viewing 5 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic.