samranlet Posted May 6 Share Posted May 6 I'm looking for a way to set all masonry galleries to display with only one column on mobile (versus multiple columns on desktop), and it seems some custom coding will be required to do this. Can anyone help? My site is samantharanlet.com Thank you! Link to comment
tuanphan Posted May 9 Share Posted May 9 Hi, Can you share link to page where you use masonry? 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
samranlet Posted May 10 Author Share Posted May 10 Yes, I use it on all the pages in my portfolio. One example is www.samantharanlet.com/portfolio/photography Thank you! Link to comment
Solution tuanphan Posted May 11 Solution Share Posted May 11 Add to Design > Custom CSS /* Masonry one item on mobile */ @media screen and (max-width:767px) { .gallery-masonry-item-wrapper { height: auto !important; margin-bottom: 30px !important; } figure.gallery-masonry-item { position: relative !important; width: 100% !important; transform: unset !important; } .gallery-masonry-item-wrapper { height: auto !important; } .gallery-masonry .gallery-masonry-item[data-loaded] img { width: 100% !important; } .gallery-masonry { padding-left: 10 !important; padding-right: 10 !important; } /* new code */ .gallery-masonry-wrapper.gallery-masonry-list--ready { height: auto !important; }} samranlet 1 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
samranlet Posted May 18 Author Share Posted May 18 That worked a charm! Thank you so very much for your help! I sincerely appreciate it. This looks so much better. tuanphan 1 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