Hidden "Featured Image" - Grey Box?

Hi,

For certain posts I use a plugin called “Hide Featured Images” to hide the main blog image.

However, it leaves a grey box where the featured image used to be. Here’s an example: https://soundtrack.academy/giovannirotondo/ (see the grey rectangle above the podcast player?)

Please could you advise how to remove this?

Thank you!

Hey Jonathan,

You can get rid of the plugin and add this code in X > Theme Options > CSS:

.entry-featured {
    display: none;
}

Hope this helps.

That looks easier! Thank you very much.

(As you’ll have probably guessed, I’m new to this :sweat_smile:)

Oh actually, does that not remove featured images for EVERY post?

I only want certain posts to have their images hidden, not ALL of them. Is there an easy way to do that?

Also: I create posts within WordPress, not with Cornerstone.

Thanks

Hey Jonathan,

Ah, if you want the featured image remove in a specific post, try assigning a class to the Body Class(es) field of the post setting. For example, assign the class no-featured-image to the posts you do not want the featured image shown, then update the code to:

.no-featured-image .entry-featured {
    display: none;
}

Hope this helps.

1 Like

That works! Thanks so much.

Hey Jonathan,

Just make sure to add the class to the post body class setting and you’re most welcome. :slight_smile:

1 Like

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