How to delete adsense code from single post

Posted in: Newspaper
Post count: 12

I have problem with deleting adnsense code from single post. i use your ad space top , inline and end , now i wanna delete adsense code in some single post, could you provide me any help to do this.

Post count: 23312

Hello ravejungle,

The simplest way, in this case, is to use a bit of CSS code to hide it from a certain page. Another way, in this case, is to do this from the code. As a hint, you have to use is_single() condition to target the post page. For more references in this regard, please check the Codex here -> https://developer.wordpress.org/reference/functions/is_single/
If you want to develop more levels in our theme and if you are not aware of the steps which are needed to take in this regard, please consider hiring a freelancer/developer to help you because we cannot provide custom work at the moment, sorry!

Thanks for your understanding!

Post count: 12

how to hide with css code could you help me.

Post count: 23312

Hello ravejungle,

You should use a bit of CSS code if you want to hide the google ad sense code for a specific post page. Also, use the post ID to target the specific one.

.td-g-rec{
display:none!important;
}

If you want a more accurate code, you should provide your website URL.

Thanks for your understanding!

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