Remove ads on all pages

Posted in: Newspaper
Post count: 13

Hi there,

Is there a way to remove ads on all pages? It doesn’t make sense (and I believe ti’s against Google policy for non-content ads) for ads to show up on a “contact page”.

Post count: 7909

Hi,

Not sure what you mean. Do you want to remove ads on a specific page? The theme doesn’t have an option for this so you will have to add a condition so the ads will be not displayed on that specific page/pages – http://screencast.com/t/WJmvB4xOtU You can find out about this(how it can be used) here – https://codex.wordpress.org/Function_Reference/is_page

Thanks!

Post count: 13

Hey Alin,

I want to remove ads on ALL pages (and just leave it on posts and categories)

Post count: 7909

Hi,

If you use theme system ads it should like I suggested above just add !is_page() without the page id and it should apply on all pages.

Thanks!

Post count: 13

Hey Alin,

Sorry to bother, can you give me the exact code? Whenever I try to type it in, I”m getting this error: Fatal error: Call to undefined function ispage() in /home1/nestworm/public_html/unyawn.com/wp-content/themes/Newspaper/includes/shortcodes/td_block_ad_box.php on line 482

Post count: 6600

Hi,

Replace the code int the td_block_ad_box.php file with this one: http://pastebin.com/uV7ueLNi

Thanks

Post count: 13

Hey Alin,

Perfect! Finaly thing (I promise) The only problem is that it also removes it from the homepage. Can you send me the code that will make the homepage the only page that is an exception?

Thanks!

Post count: 6600

Try this one: http://pastebin.com/yqMKnAKS

Thanks for the message!

Post count: 13

Hey Lucian,

Tried yours but the homepage is still missing the ads: http://unyawn.com/

Post count: 6600

Hi,

I forgot to mention you need to add your homepage id: http://screencast.com/t/uWTMNuFghqp

Thanks

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