Reply To: Hide featured image on posts of a special category

Home Forums Support Hide featured image on posts of a special category Reply To: Hide featured image on posts of a special category

#231012
Tom
Lead Developer
Lead Developer

Hi there,

1. Of a single post, you can use the Simple CSS plugin with the metabox:

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

2. You’ll need to add a function to add the category class to the single post: https://generatepress.com/forums/topic/showhide-element-per-category/#post-146595

Then you can do this:

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

3. This should do it:

.archive:not(.category) .post-image {
    display: none;
}

Hope this helps 🙂