christined Posted March 23 Share Posted March 23 (edited) Hi, all. I asked this last week in a resolved thread and am thinking maybe I need to create a new post ... I have experimented with various versions of CSS code to implement a hover caption on masonry grids in 7.1. Had best luck with code in this thread, but I have a couple issues -- when I am not hovering over image, I can see a faint/small version of the caption on the image (see screenshot) Mobile - I know hover doesn't work on mobile screens. Struggling to figure out CSS so that always displays caption (beneath image) on mobile. I am using Masonry Grid in portfolio pages. angelaart.net/work pw angela Any advice for how to tweak my css to resolve these things? Thanks for any help you can offer! Christine Edited March 23 by christined Link to comment
Solution Beyondspace Posted March 24 Solution Share Posted March 24 7 hours ago, christined said: Hi, all. I asked this last week in a resolved thread and am thinking maybe I need to create a new post ... I have experimented with various versions of CSS code to implement a hover caption on masonry grids in 7.1. Had best luck with code in this thread, but I have a couple issues -- when I am not hovering over image, I can see a faint/small version of the caption on the image (see screenshot) Mobile - I know hover doesn't work on mobile screens. Struggling to figure out CSS so that always displays caption (beneath image) on mobile. I am using Masonry Grid in portfolio pages. angelaart.net/work pw angela Any advice for how to tweak my css to resolve these things? Thanks for any help you can offer! Christine For desktop view, you can try the following code @media only screen and (min-width: 768px) { .gallery-masonry-item .gallery-caption-content { visibility: hidden; } .gallery-masonry-item:hover .gallery-caption-content { visibility: visible; } } christined 1 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
Beyondspace Posted March 24 Share Posted March 24 My testing 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
Beyondspace Posted March 24 Share Posted March 24 For the mobile, you can try the following Css code @media only screen and (max-width: 767px) { .gallery-masonry-item-wrapper { height: auto !important; } .gallery-masonry-wrapper.gallery-masonry-list--ready { display: flex; flex-wrap: wrap; height: auto !important; } figure.gallery-masonry-item { position: relative !important; display: flex; flex-direction: column; width: 100% !important; transform: unset !important; } .gallery-caption-content { position: relative; } .gallery-caption.gallery-caption-grid-masonry { width: 100%; max-width: unset; } .gallery-masonry-item-wrapper a:after { content: unset; } } My testing christined 1 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
christined Posted March 25 Author Share Posted March 25 @Beyondspace you are my hero today! Both of your suggestions are working. I so appreciate your help! 🎉 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