Ptphotography Posted August 31, 2020 Share Posted August 31, 2020 Hello everyone, Please help with the code to view the full size of the images upon click (lightbox) on my product page. On preview, the size it is: 2:3 (verticle), on click, I want Lightbox to show image full size: 2:3 and not cropped. https://www.ptphotography.com/destination/7v1gw1mrynm8aojh0otshn3rwbj4yc-p62n2 Thank you in advance 🙏 Link to comment
Beyondspace Posted August 31, 2020 Share Posted August 31, 2020 You may want this To add CSS, go to Design -> Custom CSS .gallery-lightbox-item img { width: auto!important; height: 100% !important; z-index: 99; top: 0 !important; left: 50% !important; transform: translateX(-50%); } Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Lightbox Studio pluginIf you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you Link to comment
Ad7am Posted September 25, 2020 Share Posted September 25, 2020 On 8/31/2020 at 4:40 AM, bangank36 said: You may want this To add CSS, go to Design -> Custom CSS .gallery-lightbox-item img { width: auto!important; height: 100% !important; z-index: 99; top: 0 !important; left: 50% !important; transform: translateX(-50%); } Hi Bangan, I want to enable images in gallery lightboxes to show at their full width (no matter the height), so I used this code: .gallery-lightbox-item { height: auto !important; } .gallery-lightbox-wrapper { overflow-x: hidden; overflow-y: auto; } This works, with one issue: The scroll bar is outside the <Next> arrow. I tried substituting .gallery-lightbox-wrapper with each of these other IDs I found in the page source: .gallery-lightbox-wrapper .gallery-lightbox-item-wrapper .gallery-lightbox-item .gallery-lightbox-list .gallery-lightbox-item-src .gallery-lightbox-item-img Unfortunately the only one that came close was .gallery-lightbox-list — that put the scroll bar inside the arrow, but for some reason scrolling didn't work. Any ideas to solve this? Thanks in advance. Beyondspace 1 Link to comment
Ptphotography Posted October 4, 2020 Author Share Posted October 4, 2020 On 8/31/2020 at 12:40 PM, bangank36 said: You may want this To add CSS, go to Design -> Custom CSS .gallery-lightbox-item img { width: auto!important; height: 100% !important; z-index: 99; top: 0 !important; left: 50% !important; transform: translateX(-50%); } @bangank36 sorry for the late reply, i have been busy with work recently. Thank you for solving this for me! Now I can sleep more peacefully >_< Take care! Beyondspace 1 Link to comment
Milefive Posted January 13, 2021 Share Posted January 13, 2021 Is there a CSS code to do this for a form? The scroll function is missing & visitors to my website cannot hit submit Beyondspace 1 Link to comment
tuanphan Posted January 16, 2021 Share Posted January 16, 2021 On 1/13/2021 at 8:57 PM, Milefive said: Is there a CSS code to do this for a form? The scroll function is missing & visitors to my website cannot hit submit Can you share link to page where you use form? We can check easier Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care Link to comment
Beyondspace Posted March 13 Share Posted March 13 On 1/13/2021 at 8:57 PM, Milefive said: Is there a CSS code to do this for a form? The scroll function is missing & visitors to my website cannot hit submit Do you mind to share the site URL? Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Lightbox Studio pluginIf you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you Link to comment
Beyondspace Posted March 13 Share Posted March 13 @Ptphotography I have developed a brand new plugin that allows to the lightbox images to be displayed in high-res (2500px), it allows your customers to review your images in a zoomable version. @Ad7am I knew I am late for this, but if the issue persisted I can check if you give the link Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Lightbox Studio pluginIf you find my answer fit your need, 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