Remove ad from header

Posted in: Newspaper
Post count: 60

Hi.

http://dragoernyheder.dk/2018/01/01/skoenhed-og-helse/

Can somebody help me. I want to remove the top ad from this page and only this page. I have found out how to remove the post name header using :
.post-8422 .td-post-header { display: none };

but I can’t quite figure out how to get the top banner hidden.

Hope somebody can help 🙂

Thomas

Post count: 20688

Hi,

Using CSS that can be done, especially if you don’t use Adsense ads (with Adsense hiding ads should not be done).

So the code to remove the ad just for that post page
https://www.screencast.com/t/tfKOwn1P

.postid-8422 .wppaszone.paszone-5819 {
display: none!important;
}

Thanks

Post count: 60

I have tried the same code to remove the section :
<div class=”wppaszone paszone-5819 ” id=”5819″ style=”overflow:hidden; max-width:1070px; max-height:230px; margin: 0 auto; text-align:center; “><div class=”wppasrotate paszoneholder-5819″ style=””><div class=”pasli pasli-8333 ” aid=”5819″ bid=”8333″ data-duration=”5000″>Beaute Pacifique TOP</div></div></div>

but it doesn’t work. Still visible. you can see it now with the css added.

Post count: 60

Ps. Why have you written postid instead of post. I only used post-xxx in the code I made for the header and it works.

Post count: 60

Sorryyyyy. my fault. Works now. Small format error. 🙂

Have a nice weekend.

Post count: 20688

Glad it worked, best wishes to you as well.

Post count: 26

Can you tell me why your CSS solution is not recommended for Adsense?

Post count: 20688

@daveml75 Not actually in general, there is an exception if you use media queries. This is mentioned in this guide
https://support.google.com/adsense/answer/1354736?hl=en

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