hello 
I have a lot of same sized and I would like to make their height less, without doing it manually.
Hi @hushnun
You can add this code snippet in functions.php file in your child theme directory:
function x_featured_image( $cropped = '' ) {
$stack = x_get_stack();
$fullwidth = ( in_array( 'x-full-width-active', get_body_class() ) ) ? true : false;
if ( has_post_thumbnail() ) {
if ( $cropped == 'cropped' ) {
if ( $fullwidth ) {
$thumb = get_the_post_thumbnail( NULL, 'medium', NULL );
} else {
$thumb = get_the_post_thumbnail( NULL, 'medium', NULL );
}
} else {
if ( $fullwidth ) {
$thumb = get_the_post_thumbnail( NULL, 'medium', NULL );
} else {
$thumb = get_the_post_thumbnail( NULL, 'medium', NULL );
}
}
switch ( is_singular() ) {
case true:
printf( '<div class="entry-thumb">%s</div>', $thumb );
break;
case false:
printf( '<a href="%1$s" class="entry-thumb" title="%2$s">%3$s</a>',
esc_url( get_permalink() ),
esc_attr( sprintf( __( 'Permalink to: "%s"', '__x__' ), the_title_attribute( 'echo=0' ) ) ),
$thumb
);
break;
}
}
}
This should load the medium image size defined in “WordPress Dashboard > Settings > Media > Medium Size”, you can change this size there, but make sure to run this plugin to regenerate all thumbnails.
If you don’t have a child theme configured, you can follow this guide:
Also, make sure to update the theme and the plugins to the latest stable version following this guide:
Finally, after changing the image size, you might need some CSS modifications to the page template to suit the new size, please share the blog page link in case you want help regarding that.
Thanks.
Thanks Alaa,
You gave me a lot of homework
I’ll try it out!
Kind regards,
Leonie
Sure do let us know how this goes!
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.