Thumbnail size in gallery

Viewing 4 posts - 1 through 4 (of 4 total)
  • #11800
    babaumbe07
    Participant

    Dears, sorry for my english.
    First of all many many thanks for your theme Minimatica.
    I need to change the thumbnail size in gallery, i found the code in functions.php:
    add_image_size( ‘gallery-thumb’, 200, 200, 1 );
    hit if I change, for exemple, in100 the first or the second “200”, the image remain squadre.
    I don’t need squared images but rectangular images, or the same dimensions of the original photo.
    Please help me!
    Many thanks

    #11803
    babaumbe07
    Participant

    Sorry, I had a mistake writing that i need the same dimension of the original photo: indeed I woul’d like that the thumb maintain the same proportion of the original photo, resized with weight 200 and height in proportion. Thanks

    #11829
    Daniel Tara
    Keymaster

    To maintain the picture’s ratio remove the last parameter from the function you edited earlier which will disable cropping. You’ll need to recreate your thumbnails with this plugin. Your thumbnails will probably look misaligned.

    #11843
    babaumbe07
    Participant

    Wonderful it works! Thankyou very mutch Daniel! To me as a novice, this is a magic!
    I have two other questions, if I can take advantage of your wisdom and kindness:
    – how can I make a custom order the pictures in the gallery?
    – to click on the image that opens in the lightbox, can I open it in full page instead of move forward (sliding images back and forward only with the arrows below)?
    Or, how can I open the lightbox full page (my images are 1400px wide)

    I am very grateful, this is the first time I ask for help from a forum and I find it a valuable resource when the other side there are people like that!

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

You must be logged in to reply to this topic.