Minimum Theme Featured Images

Community Forums Forums Design Tips and Tricks Minimum Theme Featured Images

This topic is: resolved

Tagged: 

This topic contains 2 replies, has 2 voices, and was last updated by  lnstrm 1 year, 4 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #40895

    lnstrm
    Participant
    Post count: 3

    Hey folks!

    What would I need to do to not display a big ole’ featured image?

    I still want to use the featured image function (to display YARPP thumbnails, etc.).

    Any help would be appreciated!

    http://grittykitchen.com/bacon-brisket-cow-meat/
    #41170

    cdils
    Participant
    Post count: 421

    Do you want to display featured images on individual lposts at all (other than for YARRP or archive pages?)

    If NOT, find this in functions.php:

    [php]
    /** Add the featured image section */
    add_action( ‘genesis_after_header’, ‘minimum_featured_image’ );
    function minimum_featured_image() {
    if ( is_home() ) {
    echo ‘<div id="featured-image"><img src="’. get_stylesheet_directory_uri() . ‘/images/sample.jpg" /></div>’;
    }
    elseif ( is_singular( array( ‘post’, ‘page’ ) ) && has_post_thumbnail() ){
    echo ‘<div id="featured-image">’;
    echo get_the_post_thumbnail($thumbnail->ID, ‘header’);
    echo ‘</div>’;
    }
    }
    [/php]

    You can remove the entire elseif block so your final code would look like this:

    [php]
    /** Add the featured image section */
    add_action( ‘genesis_after_header’, ‘minimum_featured_image’ );
    function minimum_featured_image() {
    if ( is_home() ) {
    echo ‘<div id="featured-image"><img src="’. get_stylesheet_directory_uri() . ‘/images/sample.jpg" /></div>’;
    }
    }
    [/php]

    Cheers,
    Carrie


    Have you been helped in this forum? Pay it forward and answer someone else’s question. I bet you’ll know the answer to at least one question. :)

    I host a weekly Genesis-focused podcast called Genesis Office Hours. I tweet @cdils.

    #41201

    lnstrm
    Participant
    Post count: 3

    Thank you, Carrie!

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

You must be logged in to reply to this topic.