Feature images in Minimum V.2 header are Enormous

Community Forums Forums Design Tips and Tricks Feature images in Minimum V.2 header are Enormous

This topic is: not resolved

This topic contains 7 replies, has 2 voices, and was last updated by  SoZo 1 year, 10 months ago.

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #682

    road2ruin
    Participant

    When I click the thumbnail on the front page of the site it goes tot he post  BUT the “feature” image is huge. I have cropped the image in the media gallery, changed the sizing in Functions.php and scratched my head. On the actual blog page, not the individual post, there is no problem.

    Road2Ruin Review

     

    Thank You

     


    Road2Ruin aka Michael LongRun Pictures

     
     
     

    • This topic was modified 1 year, 10 months ago by  nickthegeek.
    • This topic was modified 1 year, 10 months ago by  nickthegeek.
    #694

    SoZo
    Moderator
    Post count: 1573

    This question should be submitted to the help desk. The help desk is for any issues you are having with the original theme function. But the media gallery cropping doesn’t effect thumbnails. What did you change the image size in functions.php to? Did you run Regenerate Thumbnails plugin after changing the size?


    John “Nicolas Flamel” Wright | SoZo’s design| John Wright Photography

    #697

    road2ruin
    Participant

    “This question should be submitted to the help desk. The help desk is for any issues you are having with the original theme function. But the media gallery cropping doesn’t effect thumbnails. What did you change the image size in functions.php to? Did you run Regenerate Thumbnails plugin after changing the size?”

    Will do, that, submit this to the help desk.

    I changed the size to 900×600 which how I cropped the header (sample) image- and now i have changed it back to the original 1600, 9999, TRUE

    I added : /** Add new image sizes */
    add_image_size( ‘header’, 1600, 9999, TRUE );
    add_image_size( ‘feature image’, 1600, 9999, TRUE );
    add_image_size( ‘portfolio’, 330, 230, TRUE );
    add_image_size( ‘grid_thumb’, 150, 150, TRUE );
    add_image_size( ‘tiny_thumb’, 90, 90, TRUE );

    to the functions.php

    I and ran Regenerate Thumbnails after I added the image sizes but before i changed the feature size.

    Thanks again.

     

     


    Road2Ruin aka Michael LongRun Pictures

     
     
     

    #740

    SoZo
    Moderator
    Post count: 1573

    The second number is the height, therefor it isn’t going to crop the image height unless it is over 9999px


    John “Nicolas Flamel” Wright | SoZo’s design| John Wright Photography

    #742

    road2ruin
    Participant

    Sozo,  the answer from the help desk( Andrea) was to be found in the functions.php:

    To remove it, you will need to edit code in functions.php. It;s this section:

    /** 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>’;
    }
    }

    The second half in the else if area is what adds the image to the top of single posts.

    I have removed the featured image from the posts and that works with a clear header- ( clean top but less interesting) but I would love to be able to control for the size of the featured image. is there a reasonably simple coding change to allow for using the feature image but controlling for the size and alignment?

     

    Thanks


    Road2Ruin aka Michael LongRun Pictures

     
     
     

    #760

    SoZo
    Moderator
    Post count: 1573

    Change the dimensions in your image size to the width and height you want the images to be


    John “Nicolas Flamel” Wright | SoZo’s design| John Wright Photography

    #773

    road2ruin
    Participant

    Gotcha…and thank you


    Road2Ruin aka Michael LongRun Pictures

     
     
     

    #777

    SoZo
    Moderator
    Post count: 1573

    You’re welcome :)


    John “Nicolas Flamel” Wright | SoZo’s design| John Wright Photography

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

The topic ‘Feature images in Minimum V.2 header are Enormous’ is closed to new replies.