Home › Forums › Support › Do not show featured image in a post This topic has 9 replies, 3 voices, and was last updated 8 years, 2 months ago by Tom. Viewing 10 posts - 1 through 10 (of 10 total) Author Posts February 2, 2016 at 8:19 am #169898 ian Hi I do not want to show featured image in a post still want want featured images to show on home page and or catergory pages Feel I am missing the obvious Ian February 2, 2016 at 12:55 pm #169970 Sven Hi Ian, something like this? .page-header-image-single { display: none; } Best regards, Sven February 2, 2016 at 9:59 pm #170081 TomLead Developer Lead Developer Thanks, Sven! That’s perfect π February 2, 2016 at 10:39 pm #170087 Sven Recently I had the same requirement and as you are extremely busy since yesterday I thought I’d help out! π Kind regards, Sven February 3, 2016 at 2:41 am #170115 ian Thanks to you both that does work but I did not explain fully enough I only don’t the featured image to show on the post page If a image is set in the page header addon I still want that to show on the post page Thanks again IAn February 3, 2016 at 8:44 pm #170268 TomLead Developer Lead Developer Interesting – I’m out of office due to my baby being born but hopefully will be back tomorrow evening. Need to inspect some code to see if this is possible. Will let you know π February 4, 2016 at 2:53 am #170304 ian Take your time Enjoy your baby Ian February 4, 2016 at 6:39 pm #170516 TomLead Developer Lead Developer Ok, looked into this. There’s one option, but I’m not sure it will work for you. When an image is set as a featured image, we add a class to the body element which we can target. .featured-image-active .page-header-image-single { display: none; } So that will only apply if a featured image is set. However, if a featured image is set and a page header image is set, it will still apply, so it’s not a perfect solution. February 5, 2016 at 5:49 am #170623 ian Thanks for looking into it for me That won’t work for me you are right I can work around it though using .page-header-image-single { display: none; } and writing my posts in a slightly different way Thanks again Ian February 5, 2016 at 8:26 am #170663 TomLead Developer Lead Developer No problem – I’ll look into writing in better detection so something like this is more possible in the future π Author Posts Viewing 10 posts - 1 through 10 (of 10 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In