wilzu Posted July 4, 2022 Share Posted July 4, 2022 Site URL: http://www.xaviervoirol.ch Is there a way to change the display size of an image when it appears in the lightbox? When I click on a thumbnail, vertical images come with a size of 750 x 1125 px, but I would like them to be a bit bigger. At least a height of 2000 px or, even better, at full uploaded size (3000 x 4000 px). Actually, I need a hack to override the presence of the "?format=750w" taht appears at the end of the image URL. Beyondspace 1 Link to comment
tuanphan Posted July 7, 2022 Share Posted July 7, 2022 Try adding to Design > Custom CSS .sqs-lightbox-open .sqs-gallery-design-stacked-slide img { width: 100% !important; left: 0 !important; height: auto !important; top: -100% !Important; } Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
AKN Posted July 28, 2023 Share Posted July 28, 2023 (edited) Hello, I am trying the following code in Code Injection: <script src="https://hammerjs.github.io/dist/hammer.min.js"></script> <script> // Custom JavaScript code to enable pinch-to-zoom for Squarespace lightbox gallery document.addEventListener('DOMContentLoaded', function () { const lightboxImages = document.querySelectorAll('.gallery-masonry-lightbox-link img'); lightboxImages.forEach((image) => { const hammertime = new Hammer(image); hammertime.get('pinch').set({ enable: true }); }); }); </script> However I do not know the precise handle to select the gallery-masonry-lightbox image in the querySelectorAll. i.e. I would like to call the lightbox image, and unsure about this line in the code: '.gallery-masonry-lightbox-link img' I have also tried using the following inside the '', to no effect: .gallery-lightbox-list .gallery-lightbox-item .yui3-lightbox2 .sqs-mobile-web-content-editing My aim is to open the image in lightbox and utilize pinch-to-zoom. Any recommendations? Thanks! Edited July 28, 2023 by AKN Add atetmpts Beyondspace 1 Link to comment
AKN Posted July 30, 2023 Share Posted July 30, 2023 Hi @tuanphan , any recommendation here? I added this to the things I have tried, and it also does not work: '.gallery-lightbox-item img' Thanks for any and all help! Beyondspace 1 Link to comment
Beyondspace Posted April 16 Share Posted April 16 (edited) On 7/31/2023 at 1:03 AM, AKN said: Hi @tuanphan , any recommendation here? I added this to the things I have tried, and it also does not work: '.gallery-lightbox-item img' Thanks for any and all help! @wilzu This is exactly what Lightbox Studio offering: pinchzoom and max out the resolution of images (2500w) PLAYGROUND Edited July 19 by Beyondspace BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox, video lightbox and much more) 🗓️ Delivery Date Picker (Squarespace Date picker form field) 💫 Gallery block 7.1 workaround 🥳 No-code customisations for Squarespace (+100 Spark plugin customisations) 🥳 Freemium Squarespace Widget Templates (+1000 Elfsight Templates) If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you! Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment