Removing Featured Image from Posts/Pages – Minimum Theme

Community Forums Forums Design Tips and Tricks Removing Featured Image from Posts/Pages – Minimum Theme

This topic is: not resolved

This topic contains 1 reply, has 2 voices, and was last updated by  braddalton 1 year, 10 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #51676

    spondishy
    Participant

    I know it’s each to their own, but I want to get rid of the featured image in the big banner on the posts/pages.

    What’s the best way of doing this with the minimum theme.

    Thank you

    #51712

    braddalton
    Participant

    Comment out the action which creates it.

    /** Add the featured image section
    //add_action( ‘genesis_after_header’, ‘minimum_featured_image’ );
    function minimum_featured_image() {
    	if ( is_home() ) {
    		echo &#8216;&lt;div id=&quot;featured-image&quot;&gt;<img />&lt;/div&gt;';
    	}
    	elseif ( is_singular( array( &#8216;post&#8217;, &#8216;page&#8217; ) ) &amp;&amp; has_post_thumbnail() ){
    		echo &#8216;&lt;div id=&quot;featured-image&quot;&gt;';
    		echo get_the_post_thumbnail($thumbnail-&gt;ID, &#8216;header&#8217;);
    		echo &#8216;&lt;/div&gt;';
    	}
    }
     */
    

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

You must be logged in to reply to this topic.