Conditional display of blog post featured image


I “turned off” the featured image of blog posts because if I didn’t have an image I wanted to display, it would have a big, gray placeholder for the image. I used this code to turn off the featured image:

`.post-content .entry-header img { display: none; }’

I’m wondering if there is a way to display a featured image if there is one, and to suppress the placeholder if there is not?

Hey there

Im sorry but there is no such method, it might be displayed or not