I have 3 galleries on my homepage. On desktop there are 4 columns on mobile there are 2. I want to reduce the padding in-between each gallery.
Thanks
I have 3 galleries on my homepage. On desktop there are 4 columns on mobile there are 2. I want to reduce the padding in-between each gallery.
Thanks
Hey @jenbourge
Welcome to Shopify Community! Can you share your Store URL so I can have a look on it? Also, if you have password enabled then please share the password as well. Your cooperation would be greatly appreciated.
Best Regards,
Moeed
Hello @jenbourge , Please make changes in CSS which I put in the code below.
.shopify-section .homepage-sections-wrapper,.shopify-section .homepage-sections-wrapper--white {
padding: 50px 0; /* remove or comment this css from this */
padding: 16px 0; /* add this css */
}
This will look like the screenshot below.
For the mobile view make changes as per the code below.
@media screen and (max-width: 768px) {
.image-bar>div:last-child {
margin-bottom: 3rem; /* remove or comment this code */
margin-bottom: 28px; /* add this code */
}
.shopify-section .homepage-sections-wrapper,
.shopify-section .homepage-sections-wrapper--white{
padding: 0px 0px;
}
}
it will look a like the screenshot below.
Feel free to reach out if you have any questions or need assistance.
Hey @jenbourge
Follow these Steps:
Go to Online Store
Edit Code
Find theme.liquid file
Add the following code in the bottom of the file above tag
RESULT:
If I managed to help you then, don’t forget to Like it and Mark it as Solution!
Best Regards,
Moeed
Thanks so much this has worked on desktop. WOuld you be able to send code and where to insert to make this change on mobile also?
Thanks
Hello @jenbourge , Please check in my reply.
Hi, this has not worked. Am i copying exactly as it is and pasting at the bottom of theme.css?
Hello @jenbourge , Yes do that. If still not working then put !important at the end of your CSS properties.
Hi, this is still not changing for mobile. Is there anything else i should try?
Thanks