Resolved

How to Hide Featured Image on Pages?

Polestar Theme started by David Baker May 7, 2018 8 replies
David Baker May 7, 2018 · 3:14 am #9642

Hi. I appreciate the option to not display the featured image on single posts. But how can I hide the featured image on all pages? (I have a child theme I can alter as needed…)

Andrew Misplon Puro May 7, 2018 · 8:08 am #9643

Hi David

Thanks for posting.

You can add to Customize > Additional CSS or the alternative CSS location of your choice:

.page .entry-thumbnail {
	display: none;
}
David Baker May 7, 2018 · 11:55 am #9644

Thank you! That worked perfectly.

David Baker May 7, 2018 · 11:57 am #9645

Oh wait. OK, it worked, but it then hid featured images on my home page, in the post loop widget.

I would only like to hide featured image on the single page – if that makes sense.

Andrew Misplon Puro May 7, 2018 · 12:43 pm #9646
.page:not(.home) .entry-thumbnail {
	display: none;
}

?

David Baker May 7, 2018 · 1:28 pm #9647

No, that did not work, unfortunately.

Here is a page with the top red image being a featured image that is automatically placed on the page – I would like this featured image to not display: http://www.petful.net/pet-food-recall-center/

And here is the home page with other “teasers” to posts. I would like the featured images to remain there (and in the sidebar carousel if possible): http://www.petful.net/

Andrew Misplon Puro May 7, 2018 · 1:32 pm #9649

Thanks.

body.page:not(.home) .entry-thumbnail {
    display: none;
}
David Baker May 7, 2018 · 7:21 pm #9650

Thanks!

Andrew Misplon Puro May 7, 2018 · 8:11 pm #9651

Super 🙂 Glad to hear that did the trick.

All the best.

9 posts