• I’d like to add a featured image to my home page (and some of my other pages) so the preferred image shows up in web searches and when the page gets shared on social media. I have the Hide Featured Image plugin for WordPress, but it’s no longer supported and never worked for hiding them from page displays, in any case.

    I saw in another question that Tom posted this CSS for hiding featured images from pages in GenderatePress:

    .page-header-image-single {
    display: none;
    }

    I tried adding it to the homepage with Simple CSS, but it didn’t hide the image. (I tried adding it to the child theme, but that didn’t work either.)

    Thoughts?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi there,

    That code should work. Can you provide a link to your page where it’s not working?

    Just to add that GP Premium has options in the customizer that allows you to do that ??

    Thread Starter dalecameronlowry

    (@dalecameronlowry)

    Hi Leo,

    It was happening on my front page so I removed the featured image ?? But here’s a test page where I recreated the issue.

    https://dalecameronlowry.com/elementor-1927/

    Ooooh and you mean “hide featured image”? Good to know. Would switching mess with my custom css?

    Theme Author Tom

    (@edge22)

    This CSS should work for pages:

    .page-header-image {
        display: none;
    }

    Alternatively, you can use a plugin like Yoast SEO and set your social images inside their meta box instead of using the featured image meta box.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Hide featured image from home page’ is closed to new replies.