Support » Themes and Templates » thumbnail size in default template

  • I am modifying the default template and wish to adjust the size of generated image thumbnails, but cannot locate the parameters. Can someone point me to the relevant module?

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Add this to the functions.php file for your theme:

    function custom_thumbnail_size() {
    return 128; // or whatever you want
    }
    add_filter('wp_thumbnail_max_side_length','custom_thumbnail_size');

    The “128” is the default size, and it will be the length of the “long” side of your thumbnail. Change it to whatever number you want.

    Thanks, that works great!

    Dave

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘thumbnail size in default template’ is closed to new replies.