How to remove a name of the page over a featured imaged for specific pages
- The topic ‘How to remove a name of the page over a featured imaged for specific pages’ is closed to new replies.
Need help? Check out our Support site, then
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)
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;
}
Works perfectly! Thank you so much!