About Placing Adsense Code

Posted in: Newspaper
Post count: 8

Hii

I have placed my adsense code in header style under ads in theme panel.The ads is showing in the whole website. I don’t want to show it on certain pages like contact us and all. How can i remove ad code in certain pages.

Post count: 18283

Hello !

You can disable the ads on certain pages using a custom CSS code. Please provide a link to your website so we can inspect and provide a solution for it.

Thank you !

Post count: 8

Okay, my webiste link is https://errorcheck.net

Post count: 18283

Hello !

I have reviewed your website and I cannot find any ads in the pages you have mentioned: https://www.screencast.com/t/1HxXRthMGwY

Maybe I have missunderstooded. If so, please let me know where to check and provide a solution for hiding your ads.

Thank you !

Post count: 8

I have added the ads code now. Please check again.

Thank you

Post count: 18283

Hello !

So, for the About us page you can use this code: .page-id-28 .td-header-rec-wrap {
display:none;
}
And it should look like this: https://www.screencast.com/t/QB0VROKKNeR. You will have to change the page id for other pages. The page id can be found using the inspector tool from any browser: https://www.screencast.com/t/7LlasGPJtJj8 and just paste the code again.

Hope this was helpfull !

Thank you !

Post count: 8

The doubt is where should i paste that code?

Post count: 18283

Hello !

Sorry for the error !

You have to paste the code into Theme panel – Custom Code – Custom Css like here: https://www.screencast.com/t/NOZNJ0zO9B

Thank you !

Post count: 8

Okay, is it like, if i want to disable adse on 4 pages, then i have to paste code there 4 times with different page id in every code. Is it like that?

Post count: 8

Also please help me to remove ads in category pages because in category pages, no page id can be found using inspector tools.

Post count: 18283

Hello !

You should separate them with a comma like this example:

.page-id-28 .td-header-rec-wrap, .page-id-28 .td-header-rec-wrap, .page-id-28 .td-header-rec-wrap {
display:none;
}

For the category pages you have category id like this: .category-65 .td-header-rec-wrap {
display:none;
}

Also take a look at this screenshot: https://www.screencast.com/t/IN9ADUUw

Hope this was helpful !

Thank you !

Post count: 8

Okay, it all worked fine. Thank you much Vlad S for your help and support.

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