Title: featured post slider, image sizes
Last modified: August 24, 2016

---

# featured post slider, image sizes

 *  Resolved [stug2013](https://wordpress.org/support/users/stug2013/)
 * (@stug2013)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/featured-post-slider-image-sizes/)
 * Hi, Is it possible to enforce the size of image in the slider to be always the
   same. What I find at the moment is that there are a couple a bit bigger and they
   send the page up and down as they scroll into view. You can see it here. [http://loveyogaanatomy.com](http://loveyogaanatomy.com)
   
   thanks

Viewing 5 replies - 1 through 5 (of 5 total)

 *  [bdbrown](https://wordpress.org/support/users/bdbrown/)
 * (@bdbrown)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/featured-post-slider-image-sizes/#post-6100217)
 * 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](https://wordpress.org/plugins/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.
 *  Thread Starter [stug2013](https://wordpress.org/support/users/stug2013/)
 * (@stug2013)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/featured-post-slider-image-sizes/#post-6100234)
 * 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
 *  [bdbrown](https://wordpress.org/support/users/bdbrown/)
 * (@bdbrown)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/featured-post-slider-image-sizes/#post-6100236)
 * 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');
       ```
   
 *  Thread Starter [stug2013](https://wordpress.org/support/users/stug2013/)
 * (@stug2013)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/featured-post-slider-image-sizes/#post-6100268)
 * Thanks so much I will give it a go.
 *  [bonitowoo](https://wordpress.org/support/users/bonitowoo/)
 * (@bonitowoo)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/featured-post-slider-image-sizes/#post-6100326)
 * hi sir i visit your site! [http://loveyogaanatomy.com](http://loveyogaanatomy.com)
 * how do you do that the header image or logo is centered
 * please help me thanks

Viewing 5 replies - 1 through 5 (of 5 total)

 The topic ‘featured post slider, image sizes’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/hueman/3.7.27/screenshot.png)
 * Hueman
 * [Support Threads](https://wordpress.org/support/theme/hueman/)
 * [Active Topics](https://wordpress.org/support/theme/hueman/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/hueman/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/hueman/reviews/)

 * 5 replies
 * 3 participants
 * Last reply from: [bonitowoo](https://wordpress.org/support/users/bonitowoo/)
 * Last activity: [11 years, 5 months ago](https://wordpress.org/support/topic/featured-post-slider-image-sizes/#post-6100326)
 * Status: resolved