Is there a way to disable ads on a particular page?

Posted in: Newspaper
Post count: 38

A long time ago, I thought there was a way to disable ads on a particular page,
but I can’t recall now how I did it.
I thought it was by using a different post template, so I tried that, but it didn’t work.
do you have a way to do it without access to the ad system?

Post count: 35449

Hi,
This can be done with the Newsmag theme only if you are not using Auto Ads, as those cannot be controlled by the theme.
If you are using banners or standard ads, they will be displayed on any page or template where the Ad Box element is added. So, if you want a specific page or template to have no ads, you’ll need to create it without adding any ad elements.
As mentioned, this approach works only if you are not using Auto Ads.
Also, you can try dedicated plugins for ads, like Advanced Ads or Ad Inserter to set display conditions (Advanced Ads: Go to the edit screen of the page, locate the Ad Settings meta box, and check the option to disable ads. Alternatively, in the plugin settings, set display conditions to “Specific Pages” and choose “is not” to exclude it.)
Google AdSense Auto Ads Exclusio. If you are using Auto Ads, you can exclude specific pages directly through the AdSense dashboard.
– Ads > By site
– Page exclusions > Manage
Click Add exclusion, paste the URL of the page, and select “This page only” or “All pages in this section”.
-> https://www.youtube.com/watch?v=nhBFTpq_SEc

Post count: 38

Thank. I think I figured out a new way to do it.
I find the Div that holds the code and I hide it from the browser using CSS, but only for the particular post I’m interested in stopping ads.
– That seems to have done it and I have a better method to pick up a custom field and trigger off that, again only for certain posts.

Post count: 35449

Hi,

I see, you method can work, and what you can do is to use the post/page id to apply the css on it, this will be like this postid-217 – https://www.kadencewp.com/help-center/docs/kadence-theme/find-page-or-post-id/

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