hide featured image on pages only

  • Posted in : Lahanna
  • unioneighteen
    Participant

    Hi, can I hide featured images on pages only? I was thinking something like this, but it’s not working. Thanks!

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

    serkan
    Moderator

    Hi,
    You can use this custom css code;

    #page .post-header + .featured-image { display: none; }

    Thanks

    unioneighteen
    Participant

    thanks! this css works however it also removes featured images from the blog page (using grid + 1 / masonry). Is there a way to remove it only on static pages – not the home page which is currently set as the blog page? Thanks!

    serkan
    Moderator

    Hi,
    Do you want to remove the featured image in only pages right? It is better to edit your pages and remove the featured images. Have many pages do you have?
    Thanks

    unioneighteen
    Participant

    I tried that, but when I removed the featured image and re-saved, it auto populated with your demo image. This happened multiple times, so I thought maybe CSS was the way to go. Maybe it was a caching issue causing that?

    Right now I only have one page where it must be removed, however there will be more pages eventually. Thanks for your help!

    unioneighteen
    Participant

    see link below

    serkan
    Moderator

    Hi,
    I just updated the css code above. Could you test it again?
    Thanks

    unioneighteen
    Participant

    that works! thank you!

    serkan
    Moderator

    You’re welcome, please don’t forget to rate the theme on themeforest if you liked it, thanks.

Viewing 9 posts - 1 through 9 (of 9 total)

You must be logged in and have valid license to reply to this topic.

License required for the following item
Login and Registration Log in · Register