Hide header ad on a specific page

Posted in: Newsmag
Post count: 31

Hi folks,

I’m sure this has been answered here before but I’m unable to find where. So here goes:

I want a specific page to NOT display the header ad. How can I go about doing that?

TIA!

Post count: 6535

Hi

Please check this topic, I’ve posted a solution here: https://forum.tagdiv.com/topic/different-header-ads-on-each-page/

Thanks!

Post count: 31

Thanks Andrei. However, I managed a rather simple solution since mine was a case of NOT wanting to display ads on one page (vs. showing different ads on different pages as in your solution).

For others:

Wrap ad code in a div, and then add the following CSS:

body.page-id-*page ID number minus the asterisks* .*div class minus the asterisks* { display: none !important; }

Post count: 6535

Hi

Glad you could manage to solve it!
Thanks for letting us know and for your message!

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