• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Feature images in Minimum V.2 header are Enormous

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

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

This topic is: not resolved

Tagged: Feature images, headers above post, minimum

  • This topic has 7 replies, 2 voices, and was last updated 9 years, 7 months ago by SoZo.
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • November 19, 2012 at 8:04 am #682
    road2ruin
    Member

    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

     
     
     

    November 19, 2012 at 10:56 am #694
    SoZo
    Member

    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

    November 19, 2012 at 11:07 am #697
    road2ruin
    Member

    "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 900x600 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

     
     
     

    November 19, 2012 at 3:53 pm #740
    SoZo
    Member

    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

    November 19, 2012 at 4:02 pm #742
    road2ruin
    Member

    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

     
     
     

    November 19, 2012 at 5:24 pm #760
    SoZo
    Member

    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

    November 19, 2012 at 6:44 pm #773
    road2ruin
    Member

    Gotcha...and thank you


    Road2Ruin aka Michael LongRun Pictures

     
     
     

    November 19, 2012 at 7:39 pm #777
    SoZo
    Member

    You're welcome 🙂


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

  • Author
    Posts
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.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2022 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble