KTK Posted August 13, 2023 Share Posted August 13, 2023 Hi there, Does anyone know how to adjust the padding for a gallery section on mobile only? It looks fine on web but when the site is opened on mobile, it has larger gaps between the gallery and the text above/below. There are gallery sections on both the home page and project page, where this issue occurs. Any help would be greatly appreciated. Link to comment
Lesum Posted August 14, 2023 Share Posted August 14, 2023 (edited) @KTK Would it be possible to share the site URL so I can identify the issue? Edited August 14, 2023 by Lesum If my comments were useful, please like or mark my solution as answer so others can scroll to it quickly. Sam Web Developer & Digital Designer ☕ Did you find my contribution helpful? Buy me a coffee? Link to comment
KTK Posted August 14, 2023 Author Share Posted August 14, 2023 Here you go! https://www.ktkconcrete.co.nz/ Link to comment
Lesum Posted August 14, 2023 Share Posted August 14, 2023 (edited) @KTK Here's a code snippet to fix the issue. Let me know how it goes. Thanks! @media only screen and (max-width: 640px) { section[data-section-id="64d0612392f77a56f06c23f6"] .gallery-slideshow-wrapper, #collection-646c7dbed1cf465e6b9c9a75 .gallery-slideshow-wrapper { max-height: 200px !important; } section[data-section-id="64d0612392f77a56f06c23f6"] .gallery-slideshow, #collection-646c7dbed1cf465e6b9c9a75 .gallery-slideshow { height: auto !important; margin-bottom: 80px !important; } } Edited August 14, 2023 by Lesum If my comments were useful, please like or mark my solution as answer so others can scroll to it quickly. Sam Web Developer & Digital Designer ☕ Did you find my contribution helpful? Buy me a coffee? Link to comment
KTK Posted August 14, 2023 Author Share Posted August 14, 2023 @LesumThank you for this! I have added the code and this is what happens. The code message comes up on the live site and it changes the top section as opposed to the galleries on the project page and home page. Link to comment
Solution Lesum Posted August 14, 2023 Solution Share Posted August 14, 2023 Please add the code to the Custom CSS panel, not the Page Header Code Injection panel. You’ll find the Custom CSS panel in Website > Utilities > Website Tools > Custom CSS. If my comments were useful, please like or mark my solution as answer so others can scroll to it quickly. Sam Web Developer & Digital Designer ☕ Did you find my contribution helpful? Buy me a coffee? Link to comment
Web_Solutions Posted August 14, 2023 Share Posted August 14, 2023 (edited) Add these code on the Custom CSS section. @media only screen and (max-width: 767px) { #collection-646c7dbed1cf465e6b9c9a75, #collection-64216069dee9703e62977c6e { .gallery-slideshow[data-show-captions="true"][data-thumbnails="false"] { margin-bottom: 70px !important; height: 60vw !important; } } } Edited August 14, 2023 by Web_Solutions tuanphan and Kobir 2 If my comments are useful, please like and mark my solution as answer. It will encourage me. Thanks MD Rofik Website Designer and Digital Marketer ☕Am I helpful? Want to offer me a coffee? ✉ Send me a message if needed any help. I'll try to reply as soon as possible. Link to comment
LemmonDP Posted August 4 Share Posted August 4 Hello, I just tried this solution and it did nothing. Is there another way to edit the margins? Website: lemmondp.com 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