Martin Tristan
asked 10 years ago

Hi
its possible customize functions.php width similar code for correct dimensions of thumbnails in home page for all post
Thanks
/*———————————————————————————–*/
/*  Post Thumbnail Support
/*———————————————————————————–*/
if ( function_exists( ‘add_theme_support’ ) ) {
    add_theme_support( ‘post-thumbnails’ );
    set_post_thumbnail_size( 200, 120, true );
    add_image_size( ‘featured’, 600, 300, true ); //featured
    add_image_size( ‘related’, 200, 120, true ); //related
    add_image_size( ‘widgetthumb’, 50, 50, true ); //widget
    add_image_size( ‘widgetbigthumb’, 300, 160, true ); //Widget big thumb

1 Answers
DominicStaff
answered 10 years ago

Hi,
Apologies for the delay in replying to you,
Regarding the issue you mentioned. Of course, you can add the code to the functions.php then edit  the thumbnail size that you want to change.
Hope this helps !

Martin Tristan
replied 10 years ago

Thanks
I have add this code in functions.php for customize thumbnails

/*———————————————————————————–*/
/* Post Thumbnail Support
/*———————————————————————————–*/
function dw_minion_thumbnails_init() {
set_post_thumbnail_size( 580, 360, true );
add_image_size( 'post-thumbnail-fullwidth', 640, 420, true );
add_image_size( 'featured', 640, 420, true ); //featured
add_image_size( 'related', 200, 120, true ); //related
add_image_size( 'widgetthumb', 50, 50, true ); //widget
add_image_size( 'widgetbigthumb', 300, 250, true ); //Widget big thumb
}
add_action( 'after_setup_theme', 'dw_minion_thumbnails_init' );

Powered by DW Question & Answer Pro