Hide featured image on linked page

  • Unknown's avatar

    How can I hide the featured content image on the page it opens and still keep it in the slider of the home page?

    The blog I need help with is: (visible only to logged in users)

  • You can target the pages and posts in your featured-content slider like this:

    .page-id-82 .featured-image, .postid-4 .featured-image, .postid-43 .featured-image, .postid-42 .featured-image, .postid-41 .featured-image {
      display: none;
    }

    You can add new pages or posts by finding the unique post or page ID on the body tag for that post and following the example above, separating new pages or posts with a comma between each.

    To view the body tag, use a browser inspector or view the browser’s source. Here’s an example of the body tag on the Energy Solutions page:

    <body class="home page page-id-942 page-template-default logged-in admin-bar no-customize-support custom-background mp6 customizer-styles-applied right-sidebar slider-active-front-page has-site-logo highlander-enabled highlander-light custom-colors theme-menu-maximized">

    Let me know how it goes.

  • The topic ‘Hide featured image on linked page’ is closed to new replies.