Lightbox Image Ignoring original aspect ratio #2112
-
Hello, I'm currently considering using the Portswipe 5 version for WordPress. My goal is to have the images displayed in the lightbox maintain their original aspect ratio and size. However, I've encountered an issue where the image size seems to be fixed to the screen size, regardless of the zoom level adjustments. Could anyone guide me on how to resolve this problem? I'd like the images to display in their original size and aspect ratio within the lightbox. Code :
Thank you. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
You're using both If you want to use non-default HTML markup, check this - https://photoswipe.com/data-sources/#custom-html-markup |
Beta Was this translation helpful? Give feedback.
-
Hi, @dimsemenov Its sovled! Thanks a lot! |
Beta Was this translation helpful? Give feedback.
You're using both
gallery
/children
options anddataSource
, they are not compatible with each other. Use either or.If you want to use non-default HTML markup, check this - https://photoswipe.com/data-sources/#custom-html-markup