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. |
Answered by
dimsemenov
Jul 19, 2024
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 |
0 replies
Answer selected by
cheonmux
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

You're using both
gallery/childrenoptions 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