hide adsense ads from a single post

Posted in: Newsmag
Post count: 19

Hi, i need to hide header, post and sidebar ads from some post. Ho can i do that? Plese answer asap!

Post count: 6535

Hi

For header ad you can add a condition like this in ads.php: http://screencast.com/t/kBMpgQDwrkU

if (!is_single(post_id)){
echo td_global_blocks::get_instance('td_block_ad_box')->render(array('spot_id' => 'header'));
}

To get the post id follow this link: http://screencast.com/t/sbNlQ28P
To disable the sidebar ad from a specific post you can create a new sidebar with the same content, except the ad-spot, then add your sidebar into your post: http://screencast.com/t/zvhzLiw1

Thanks!

Post count: 44

Hello sir,
If i would like to hide all ads in tags basis. So when i need to hide ads in any post, we can add tag name.

Post count: 6535

Hi

I am not sure what you mean so please provide more details about this, also a scree pointing the desired result so I can get back to you with a more precise answer.

Thanks!

Post count: 44

I mean if a category a selected for post then hide ad in this post.
If many number of posts selected in one category. so ads hide in all the post that selected for this category.

I’m just saying how to hide all the ads in selected category posts.

Post count: 6535

Hi

To remove article the ads for posts from spacific categories please check this link, I’ve posted a solution here: https://forum.tagdiv.com/topic/remove-theme-panel-ads-from-specific-category/

Thanks!

Post count: 44

This is to block inline ad.

What if i need to block all the adsense ads(header, inline, befor post, after post, fotter) on multiples of posts.

Post count: 6535

Hi

Please check this topic, I’ve posted a solution here: https://forum.tagdiv.com/topic/remove-ads-in-certain-postpage/

Thanks!

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