-
AuthorPosts
-
October 29, 2020 at 12:19 pm #1256685
Hi there,
I have a question, is it possible to change the size of the miniatures in a gallery in a portrait size instead of landscape? I can choose a lot of sizes, but there’s no portrait size-option… And my gallery has got all portrait book-images in it, so that’s the reason I really want the miniatures also to be portrait.
Please let me know, I’m looking forward to your reply!November 3, 2020 at 3:16 am #1257832Hey JoStudioDeRijp,
Thank you for the inquiry.
The thumbnail size can be set in the Gallery’s Styling > Gallery Preview Image Size settings. Try to set it to the first option if you want to display the original size of the images.
You could also use the following plugin if you need to adjust the size of the registered thumbnails.
// https://wordpress.org/plugins/simple-image-sizes/
Best regards,
Ismael- This reply was modified 4 years ago by Ismael.
November 3, 2020 at 3:42 pm #1258037Hi Ismael,
Thanks for your reply.
I already saw and tried that option… But that option works in a different way that the sizes in the list.
When I choose for example Portfolio 495 x 400, all the miniatures are shown in that size, even if my images I set in the Media Library are all different sizes.
With your solution I have to make all the original images the same size.
I am wondering if there is a solution not to do that… so an extra option with a portrait size in the Gallery Preview Image Setting.
Hope you can help me!November 9, 2020 at 2:03 am #1259146Hi,
When I choose for example Portfolio 495 x 400, all the miniatures are shown in that size, even if my images I set in the Media Library are all different sizes.
That is how selecting a thumbnail is supposed to work, so it is actually recommended to upload images with the same size. Another solution is to use the original image and show it as is, or register another thumbnail or size as you see fit and use it instead.
// https://developer.wordpress.org/reference/functions/add_image_size/
// https://developer.wordpress.org/reference/hooks/image_size_names_choose/You can use the add+image_size function to register your own thumbnail or image size, and the filter image_size_names_choose should allow you to include the new thumbnail or image size in the image list so that they can be selected later on.
Best regards,
Ismael -
AuthorPosts
- You must be logged in to reply to this topic.