Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
  • #18841


    is there a possibility to change the size of the thumbnails, using wordpress gallery?

    I changed the size of the thumbnails in wordpress itself and used the resize-thumbnails plugin, but the size of the thumbs didn’t change.


    Hi handmadecalcare,

    I don’t think it can be changed by using that plugin, I suggest you open this folder: wp-content > themes > coherence. Open functions.php and find this code block (line 49):

    $avia_config['imgSize']['widget'] 			 	= array('width'=>36,  'height'=>36 );						// small preview pics eg sidebar news
    $avia_config['imgSize']['slider_thumb'] = array('width'=>70, 'height'=>50 , 'copy'=>'greyscale'); // slideshow preview pics
    $avia_config['imgSize']['fullsize'] = array('width'=>930, 'height'=>930, 'crop'=>false); // big images for lightbox and portfolio single entries
    $avia_config['imgSize']['featured'] = array('width'=>990, 'height'=>360 ); // images for fullsize pages and fullsize slider
    $avia_config['imgSize']['portfolio'] = array('width'=>448, 'height'=>330, 'copy'=>'greyscale'); // images for portfolio entries (2,3 column)
    $avia_config['imgSize']['portfolio_small'] = array('width'=>241, 'height'=>179, 'copy'=>'greyscale'); // images for portfolio 4 columns

    //dynamic columns
    $avia_config['imgSize']['dynamic_1'] = array('width'=>430, 'height'=>138); // images for 2/4 (aka 1/2) dynamic portfolio columns when using 3 columns
    $avia_config['imgSize']['dynamic_2'] = array('width'=>593, 'height'=>204); // images for 2/3 dynamic portfolio columns
    $avia_config['imgSize']['dynamic_3'] = array('width'=>672, 'height'=>138); // images for 3/4 dynamic portfolio columns

    The height and width of the images are defined there. Just change the width and height and save the file. Then use the Regenerate Thumbnails plugin to regenereate the images. Hope this helps. :)




    Hi Ismael

    If I define the sizes according to your suggestion – what will happen to vertical and square images?

    Is there a way to make sure that vertical and square images are treated the same way as horizontal images (retaining the aspect ratio of the original image)?


    – horizontal image: 300 x 200 px (3:2)

    – vertical image: 200 x 300 px (2:3)

    – square image: 300 x 300 px (1:1)

    The aspect ratio of my images I upload is always either 2:3 , 3:2 or 1:1




    Yes, you can deactivate the crop feature – i.e. compare the code line above:

    $avia_config['imgSize']['fullsize'] 		 	= array('width'=>930, 'height'=>930, 'crop'=>false);

    if you add ‘crop’=>false to the image size wordpress will not change the aspect ratio.


    Thanks for your reply.

    I followed your instructions, but it didn`t work.

    In the code you posted, the size in line 49 in 36×36 px, but the thumbnails default size in the theme is 80 x80.

    The link to the site is


    Ich habe das Problem mit Hilfe der NextGen Gallery gelöst – siehe Galerie “Kamin”

    Als weitere Frage: Wie kann ich die WPML Flaggen über dem Header entfernen?


    Hi handmadecalcare,

    Have you regenerated your images using the Regenerate Thumbnails plugin?




    Hi Ismael,

    yes i have.




    füge folgenden Code zu css/custom.css um die Flaggen zu verstecken:

    display: none;




    Das Flaggen-Problem ist gelöst.

    Das Thumbnail-Problem leider nur durch NextGen, wobei ich es lieber direkt im Theme gelöst hätte.

    Vielen Dank für den schnellen Support!


    Glad we could help :)



Viewing 11 posts - 1 through 11 (of 11 total)

The topic ‘Change thumbnail size’ is closed to new replies.