Hi stug2013. The image size used for the slider is the theme size “thumb-large” which is 720×340. The image is then sized proportionately to fit the slider content width which, with a 2-column layout, is 712px. So the normal slider image is 712×336. However, it appears that some images do not have the default “thumb-large” size so the theme is using the original (?) image. For example, the Julie Martin image being used is 300×340. Expanding that to the 712px width gives a size of 712×807.
You can use css to “enforce” a standard image height; this will compress those images which are larger than the limit:
#flexslider-featured img {
max-height: 336px;
}
You could also try the Regenerate Thumbnails plugin to see if it can reset the image thumbnails. Note also that this will not completely solve the issue of the page content shifting up and down. That movement is also affected by the length of the featured post excerpt/content being displayed in the slider.
Hope that helps.
Thanks bdbrown that really help. As a sort of fix I could now make sure all the featured images conform to the right size. To make all the excerpts the same length is it possible to set a limit by character?
thanks Stu
Add this to your child theme functions.php file. Set the $chars variable number to how many characters you want to display. I haven’t tested it so no guarantees but I think it should work.
function my_excerpt($text) {
$chars = 99;
$excerpt = $text;
$excerpt = preg_replace(" (\[.*?\])",'',$excerpt);
$excerpt = strip_shortcodes($excerpt);
$excerpt = strip_tags($excerpt);
$excerpt = substr($excerpt, 0, $chars);
$excerpt = substr($excerpt, 0, strripos($excerpt, " "));
$excerpt = trim(preg_replace( '/\s+/', ' ', $excerpt));
return $excerpt;
}
add_filter('the_excerpt', 'my_excerpt');
Thanks so much I will give it a go.
hi sir i visit your site! http://loveyogaanatomy.com
how do you do that the header image or logo is centered
please help me thanks