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

    Hello,

    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.

    #101134

    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. :)

    Regards,

    Ismael

    #101135

    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)?

    Example:

    – 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

    Thanks

    Bruno

    #101136

    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.

    #101137

    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 http://handmade-calcare.com/oberflachen/

    #101138

    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?

    #101139

    Hi handmadecalcare,

    Have you regenerated your images using the Regenerate Thumbnails plugin?

    Regards,

    Ismael

    #101140

    Hi Ismael,

    yes i have.

    #101141

    Hi!

    Hallo,

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

    .avia_wpml_language_switch{
    display: none;
    }

    Regards,

    Peter

    #101142

    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!

    #101143

    Glad we could help :)

    Regards,

    Devin

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

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