Community Forums › Forums › Archived Forums › Design Tips and Tricks › Feature images in Minimum V.2 header are Enormous
Tagged: Feature images, headers above post, minimum
- This topic has 7 replies, 2 voices, and was last updated 12 years, 5 months ago by
SoZo.
-
AuthorPosts
-
November 19, 2012 at 8:04 am #682
road2ruin
MemberWhen 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.
Thank You
Road2Ruin aka Michael LongRun Pictures
November 19, 2012 at 10:56 am #694SoZo
MemberThis 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 #697road2ruin
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 #740SoZo
MemberThe 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 #742road2ruin
MemberSozo, 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 #760SoZo
MemberChange 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 #773road2ruin
MemberNovember 19, 2012 at 7:39 pm #777SoZo
Member -
AuthorPosts
- The topic ‘Feature images in Minimum V.2 header are Enormous’ is closed to new replies.