How to remove a name of the page over a featured imaged for specific pages

  • Author
    Posts
  • #144066
    infjmickey
    Member

    I noticed someone already asked this question, however, I was wanting to know how do I do it for a specific page? I want to keep the name on the photo on the homepage, but on my contact page I don’t want to have the name and date on the featured photo.

    My blog url is: infjmickey.com

    Thanks in advance for the help!

    The blog I need help with is: (visible only to logged in users)

    #144351
    jleuze
    Theme Author

    Hi, you can target a specific page using body classes. Your contact page has an ID of 2, so the “page-id-2” class is added to the body of just that page.

    The CSS to hide that content would look like this:

    
    body.page-id-2 .featured-content {
        display: none;
    }
    
    #144401
    infjmickey
    Member
    Original poster

    Works perfectly! Thank you so much!

  • The topic ‘How to remove a name of the page over a featured imaged for specific pages’ is closed to new replies.