a little hint for themes

Posted in: Newsmag
Post count: 23

It would be very useful to make available to posts and pages the option to remove ads, as there are posts and pages that it is inappropriate to have ads.

Post count: 23312

Hello Abner Santana,

You can remove your ads on your pages or posts if you use a bit of Css to hide them. Please try the code below and solve the problem. Place the code below in Theme panel->Custom Css area: http://screencast.com/t/CoXiJsDWsc2

This code is fro posts-> http://screencast.com/t/IBr9FrcK

.postid-118 .td-all-devices {
display:none;
}

This code is to hide the ads to the page-> http://screencast.com/t/r5AuEmRJ

.page-id-39 .td-all-devices {
display: none;
}

Hope this helps and let us know how it goes!

If is not what you mean, please provide more details about your problem.

Thank you for the message!

Post count: 23

Thanks, it’s a very good solution!

Post count: 6

Hi. I have a follow up to this. I can see we can identify posts manually this way and hide the ads.

However, the ad code is still being run and served, it is just hidden by the CSS attribute. This seems like a very concerning situation with Google or other ad platforms. If they find they are serving ads and charging for impressions, but the ads are not displayed, we would definitely lose our account.

I am not sure CSS will work. We need a page or post template where the ad units are not inserted to begin with. Just like a “Simple page” that has the header and footer, but no ads inserted at all.

Or are there any other suggestions on how to do this correctly?

Thanks!

  • This reply was modified 10 years by clubfred.
Post count: 9544

Best solution is to use a pro level ad manager which is inserted into ad spots and has if/then checks for exlude category by ID, skip placement as part of post page, etc.

Hard for the theme to have a “one for all” complex ad solution.

Some pretty good ad management systems out there now.

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