How to not show featured image of a 1 particular blog post

Hi,

How can I not show the featured image of 1 particular blog post? So, I do NOT want to NOT show ALL the featured images of all blog posts. I just want to NOT show 1 featured image of 1 specific blog post.

Thank you.

Hi There @djinnie

Thanks for writing in! First locate the post ID of your blog post, that you want to hide the featured image. Here’s how you can locate your post ID (https://theme.co/apex/forum/t/setup-how-to-locate-post-ids/59).

Then add the following CSS rule into your X -> Theme Options -> CSS area by replacing your post ID with xxx.

.postid-xxx .entry-featured {
    display: none;
}

So for example, if your post ID is 51, the code should be as follows.

.postid-51 .entry-featured {
    display: none;
}

Hope that helps.

I have added that code but it does not work. The featured image is still there. Please see the blog post in the secured note.

Hi @djinnie,

The code should be:


.postid-3643 .entry-featured {
    display: none;
}

Hope this helps.

I have added that exact code but the featured image is still there.

Hi @djinnie,

The CSS you have added is inside a media query. See this: https://screencast-o-matic.com/watch/cqe2ik0zzT
So this CSS right now is only working when the screen size is below 767px. Check your custom CSS and add a closing bracket on your media query. See below:
@media (max-width:767px){ .relative img{ position:relative !important; } } /*This closing bracket for media query is missing. Please add it. */ .postid-3643 .entry-featured{ display:none; }
Hope this helps.

Hi,

Oh, my bad! Sorry. This works now.

You guys are amazing! Great customer service.

Hey @djinnie,

You’re welcome! We are just glad we were able to help you out.
Thanks for letting us know that it has worked for you.

Cheers.

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