• Hi there,

    I want to display the featured image on standard blog pages and single blog pages but not on category archive pages. Is there a way to do that?

    For example this page: https://www.vogography.at/aktionen/

    There shouldn’t being displayed a featured image but it’s automatically using my profile-logo.

    Thanks for your help!

    Greetings,
    Christoph

    • This topic was modified 7 years, 8 months ago by vogography.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Robin Cornett

    (@littlerchicken)

    I would start with the final example on the FAQ page under “How can I change how the plugin works?”, which is a filter to conditionally disable the plugin. For example, this would prevent the plugin doing anything on category and tag archives, but would still run anywhere else there is a featured image available (singular posts, the blog archive, etc):

    
    add_filter( 'displayfeaturedimagegenesis_disable', 'prefix_skip_archives' );
    function prefix_skip_archives( $disable ) {
    	if ( is_category() || is_tax() ) {
    		return true;
    	}
    	return $disable;
    }
    

    You can add this code to your theme’s functions.php file or wherever you keep similar code. Just please practice safe coding, back up your files, etc. etc. Hope that helps you get started–

    Thread Starter vogography

    (@vogography)

    Hi Robin,

    thank you very much for your info! That’s perfect! ??

    Greetings,
    Christoph

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Remove featured image from archive pages’ is closed to new replies.