How to set image ratio when using gallery short code
-
Hello
I do use a lot of times the gallery short code while using the classic editor for create blog posts.
Since a while, images showing in the gallery, they don’t show as the ratio the image is having, even when I am having it set to full size:
[gallery columns="2" link="file" indents="true" size="full" ids="29622,29616"]
I am not sure if this is new or where to set, that the ratio should be different…
Currently the output is this:<div class="w-gallery wp_gallery type_grid action_popup_image ratio_1x1 count_2" style="--columns:2;--items-gap:8px;"><div class="w-gallery-list"><div class="w-gallery-item"><div class="w-gallery-item-img"><img decoding="async" width="800" height="1200" src="https://www.ashtailorsamui.com/wp-content/uploads/2023/12/Embracing-Light-Fabrics-01.jpg" class="attachment-full size-full" alt="" srcset="https://www.ashtailorsamui.com/wp-content/uploads/2023/12/Embracing-Light-Fabrics-01.jpg 800w, https://www.ashtailorsamui.com/wp-content/uploads/2023/12/Embracing-Light-Fabrics-01-200x300.jpg 200w, https://www.ashtailorsamui.com/wp-content/uploads/2023/12/Embracing-Light-Fabrics-01-683x1024.jpg 683w, https://www.ashtailorsamui.com/wp-content/uploads/2023/12/Embracing-Light-Fabrics-01-768x1152.jpg 768w" sizes="(max-width: 800px) 100vw, 800px"></div><a class="w-gallery-item-link" aria-label="Embracing Light Fabrics 01" ></a></div><div class="w-gallery-item"><div class="w-gallery-item-img"><img loading="lazy" decoding="async" width="800" height="1200" src="https://www.ashtailorsamui.com/wp-content/uploads/2023/12/Color-Palette-and-Patterns-01.jpg" class="attachment-full size-full" alt="" srcset="https://www.ashtailorsamui.com/wp-content/uploads/2023/12/Color-Palette-and-Patterns-01.jpg 800w, https://www.ashtailorsamui.com/wp-content/uploads/2023/12/Color-Palette-and-Patterns-01-200x300.jpg 200w, https://www.ashtailorsamui.com/wp-content/uploads/2023/12/Color-Palette-and-Patterns-01-683x1024.jpg 683w, https://www.ashtailorsamui.com/wp-content/uploads/2023/12/Color-Palette-and-Patterns-01-768x1152.jpg 768w" sizes="(max-width: 800px) 100vw, 800px"></div><a class="w-gallery-item-link" aria-label="Color Palette and Patterns 01" ></a></div></div></div>
And the ratio shows “ratio_1x1”
Any help I appreciate.
Regards,
SimonThe page I need help with: [log in to see the link]
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘How to set image ratio when using gallery short code’ is closed to new replies.