Google Ad Manager – Want to prevent ad banner module from loading on single post

Posted in: Newspaper
Post count: 4

https://www.tech4law.co.za/courses-on-offer/seminars-d67/legal-talk-africa-2025/

The banner ad at the right in the content of the post, I don’t want to load for this article. It is the square banner 300×250. In think the code “id” for this is “aw0”.

The banner are controlled by Google Ad Manager, and I don’t have any plugins managing my ads on the site.

How can I on individual articles stop certain Google Ad Manager ads from displaying – also I don’t want the ad to not display and leave a blank square in it’s place, I want the module not to load, so the area is there as it the ad module did not exist.

Any help would be greatly appreciated.

Post count: 35449

Hi,
You can use the class of post and check the id or class of ads – https://i.imgur.com/x2XWW1p.png
I hope this will help you!

Post count: 4

Hi Calin

I am not that good with code. But I did try the post ID, but it seems the Google Ads come in after the page loaded.

Post count: 35449

Hi,
You can use this custom css -https://i.imgur.com/W7UPGHN.png
.postid-24357 .custom_html-2{
display: none;
}

The css code can be set in the theme panel and you can duplicate it and just set the article id, example:
.postid-1 .custom_html-2,
.postid-2 .custom_html-2,
.postid-24357 .custom_html-2{
display: none;
}

Post count: 4

Hi

I will give that a try, many thanks for the input.

Viewing 5 posts - 1 through 5 (of 5 total)
The forum ‘Newspaper’ is closed to new topics and replies.