Hiding the Featured Image

  • Author
    Posts
  • #117672

    sebastianschick
    Member
    Original poster

    Hello there, I need help with my page. I would like to hide the featured image at some pages but still want it to be shown on the front page (in the Grid), inside the banner (on the single page) and when I post the link on Social Media. How do I do this?

    The blog I need help with is: sebastianschick.com

    #117888

    tarasdashkevych
    Theme Author

    Hello,

    To hide featured image in single views (single post page and single page), please use this custom CSS:

    .page:not(.page-template-front-page) .site-main .hentry > .entry-thumb,
    .single .site-main .hentry .entry-thumb {
        display: none;
    }

    If you want to hide the featured image only for the single pages, then use this custom CSS:

    .page:not(.page-template-front-page) .site-main .hentry > .entry-thumb {
        display: none;
    }

    If you want to hide the featured image only for the single post pages, then use this custom CSS:

    .single .site-main .hentry .entry-thumb {
        display: none;
    }

    To remove featured image for the specific page, you’ll need to know the page ID (https://en.support.wordpress.com/pages/#how-to-find-the-page-id), and then use a custom CSS. For example:

    .page-id-30 .site-main .hentry .entry-thumb {
        display: none;
    }

    where 30 id the page ID.

    Hope this helps.

    Best,
    Taras

The topic ‘Hiding the Featured Image’ is closed to new replies.