Featured Images Broken

A while back, I put CSS code on to hide the featured image within posts on my site. This worked for a few months, but now for some reason, featured images are showing back up on posts. I havent changed the CSS on my website, so I’m not sure why they’re suddenly showing again. What can I do to fix this?

My website is powerfullifting.com

Hi Peter,

Thanks for writing in! I don’t see any custom CSS rule that hides your featured images. Could you please try adding the following CSS rule into your X -> Theme Options -> CSS area and see if that helps.

I see blog category links on your main menu. To hide featured images on your blog categories, add the following CSS rule.

.category .entry-featured {
    display: none;
}

Top hide featured images on your single blog pots, add the following CSS rule.

.single-post .entry-featured {
    display: none;
}

Hope that helps.

Hi, I have that code in the CSS, but the featured images still show on posts.

Hello Peter,

Thanks for updating the thread. :slight_smile:

I checked the website and something which is quite Odd is that I don’t see body information that contains body class in HTML section. That’s the reason why code shared by my colleague @mldarshana is not working. There’s no issue with the code, it’s just the body class information is not present in HTML output, the class .single-post is not taking effect.

I also see that you have enabled Cache plugin. Please deactivate the same temporarily. If you have installed plugin or made any customization in child theme for this specific purpose, please remove that.

Here’s a screenshot that has all the necessary body class information.

Here’s screenshot for your website. As you can see there’s no class information for body.

Thanks.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.