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.
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 !
I have added the ads code now. Please check again.
Thank you
Hello !
So, for the About us page you can use this code: .page-id-28 .td-header-rec-wrap { 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.
display:none;
}
Hope this was helpfull !
Thank you !
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 !
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?
Also please help me to remove ads in category pages because in category pages, no page id can be found using inspector tools.
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 !
Okay, it all worked fine. Thank you much Vlad S for your help and support.