Hide Elements on Specific Post

Posted in: Newspaper
Post count: 61

Hi Guys,

I’m hoping you can help me. I’d like to use CSS code to hide the following elements on one specific blog post:

– Date
– Social sharing buttons
– Author bio
– Related articles
– Comments

These are all visible on most posts, and I don’t want to change that. Just looking to remove them from a specific post using CSS code and the post id.

Thanks!

Dave

Post count: 23312

Hello Irreverent Gent,

All of these elements can be hidden if you want to use a bit of CSS code. So, after this, you should use the Inspector browser, according to our documentation here -> https://forum.tagdiv.com/create-custom-code-using-the-browsers-inspector/ and try to target the classes for each element and add the display:none rule via CSS custom code. Also, if you want to hide al of them only for a specific post, you should use the post ID for your desired post as a class, like this -> https://www.screencast.com/t/gBwyHSRWy.

Hope this helps!

Thanks for your understanding!

Post count: 61

Got it, thank you!

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