Remove inline ad from specific category

Posted in: Newspaper
Post count: 72

Hello

I would like to remove the inline ad option from a specific category and that even if the post has multiple categories that it will not show the inline ad when the one category is flagged as the one not to show the ad.

Hope that makes sense? How would I do this please?

Rachael

Post count: 20688

Hi,

I see the ads used are HTML ads, it would be possible with some CSS in this case. For example this post – https://www.snowsbest.com/aldi-ski-gear/
Has these categories – http://prntscr.com/nlvpqn
So a code like this will work – http://prntscr.com/nlvqpy if you don’t want the inline ad to appear on post belonging to the “Gear” category

.single .category-gear .td-a-rec-id-content_inline {
display: none;
}

It can be multiplied to work on other categories as well, for example

.single .category-gear .td-a-rec-id-content_inline,
.single .category-guest-blogger .td-a-rec-id-content_inline,
.single .category-athletes .td-a-rec-id-content_inline,
.single .category-backcountry .td-a-rec-id-content_inline {
display: none;
}

This would be a solution, let me know if you need help.

Thanks

Post count: 72

Thank you so much, that worked.

Rachael

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