Article inline, top, bottom ads

Posted in: Newspaper
Post count: 136

Hi,

Is there a way to disabled the article ads in a single post only while keeping it enabled on other posts? Is there a shortcode that can be used?

Thank you!

Post count: 7909

Hi,

You can use css to hide them only on that post:
Take the post ID: http://screencast.com/t/Wb7Vnhe1BufG
Use class .postid-xxx to hide: http://screencast.com/t/ZsS1RInIcBn

.postid-xx .td-a-rec.td-a-rec-id-content_bottom{
display: none;
}

Thanks!

Post count: 136

Ah OK thank you!

Post count: 136

Alin,

I have inserted this in the themes custome CSS but not working. Am I missing something or should I be inserting this elsewhere?

Thank you!

Post count: 7909

Hi,

Yes, you have to add it in Custom Css from Theme Panel and save: http://screencast.com/t/MWjAbBCPASJr
Instead of xx add your post ID like I said above. Also try the code with !important like this:
For top ad:

.postid-xx .td-a-rec.td-a-rec-id-content_top{
display: none !important;
}

For inline ad:

.postid-xx .td-a-rec.td-a-rec-id-content_inline{
display: none !important;
}

For bottom ad:

.postid-xx .td-a-rec.td-a-rec-id-content_bottom{
display: none !important;
}

Hope this helps!

Post count: 136

Ah excellent! I just realized your first message listed for top and I was trying to hide inline 🙂 works now. Thank you Alin. Do you recommend any plugin that allows for me to insert CSS directly when creating a post compatible with your theme? No biggie just a thought.

Post count: 6600

Hi,

I’m not aware of any plugin that can help you with that! You should search the web for one!

Thanks for the message!

Post count: 136

Lucian,

Can we exclude a specific page as well with this code?

Post count: 136

Nevermind! I figured out the page-id-### code 🙂

Thank you!

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