Hide Featured Image on Single Blog Only

Hey there,

I’d like to hide the featured image on single blog post but all CSS that I’ve tried either do nothing or remove the image from single portfolio too – which I don’t want.

What is the correct CSS?

Thanks,
Ann

Hey Ann,

Here’s the CSS.

.single-post .entry-thumb,
.single-x-portfolio .entry-thumb {
display:none;
}

That will remove the featured image. If in the future you want to use a featured slider or video but don’t want them shown in the single post or portfolio, use this CSS below instead. This will remove all.

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

Just a reminder, we’re using custom code here. Though I tested it in my test site, this may or may not work in your site now or in the future. In that case, you need to seek help from a third party developer.

Thanks.

Thanks Christian!

I wanted to remove the image on our blog post only. Was able to tweak the code slightly and all good to go now :slight_smile:

Thanks so much for the quick support!

Ann

Glad we could help.

Cheers!

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