I'm trying to figure out how to hide a post and page titles while on the specific post or page, but NOT throughout the entire site.

I've tried hiding the .entry-title class, but that hides titles globally. I only want the title hidden while viewing a single post or page.

For a reference, here is a link to the site I'm working on. http://develop.warriorsoncataract.com/


  • Browsing the site is painful with the facebook like popup, how can someone like your sites content if they're asked before they get a chance to see it?
    – Tom J Nowell
    Feb 22, 2016 at 2:50

1 Answer 1


Your theme correctly uses the body_class function, which you can see by looking at the body tag. This means CSS classes are being added such as page or post that you can work with.


body.page .entry-title { display: none; }

There are many other CSS classes that may be useful to you, I suggest you browse your website with the developer tools turned on to see what CSS classes are available for styling

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.