How to remove featured image just from one single post only

Hi,

How do I remove featured image just from one single post?

I want to show featured image of this post on homepage but when in the post (single post), I do not want to show the featured image. and just for this particular post only.

Other posts still showing featured image.

Used to be able to create single post template but now things have changed so much that I not sure how to do it anymore.

Is like creating custom template for page but this is for single post.

Any idea?

Let me know. Thanks.

Hi @archampion,

I hope you are well today and thank you for your question.

You can try achieving this by adding the following CSS code in the Custom CSS option of your theme on the below path.

Admin Area -> Appearance -> Customize -> Activello Options -> Other -> Custom CSS

body.postid-1898 img.single-featured.wp-post-image {
    display: none;
}

Please change the number 1898 in the above code to the post id where you want to remove the featured image.

Best Regards,
Movin

Hi @Movin,

Thanks.

But what if I need for more than 1 post?

I can’t be always adding the css. That way there will be a long list of body.postid-XXXX img.single-featured.wp-post-image style.

And is not the very best way to do, in my opinion.

Any way I can create different layout for the post?

I have been trying but it doesn’t seems to register the layout.

And by the way, I’m using child theme that I created.

The other simple way to achieve this is by using this plugin https://wordpress.org/plugins/rt-custom-css-page-and-post/screenshots/ and adding the following CSS code in the custom CSS option provided by this plugin to hide the featured image of that post.



body.single-post img.single-featured.wp-post-image {
    display: none;
}

If you don’t find this solution suitable for you then you have to develop custom code to achieve this.