Shopify themes, liquid, logos, and UX
hello,
I was looking for a custom code to remove the padding seen in my photo on mobile only.
Page link: https://obadiahcoffee.com/pages/equipment
Solved! Go to the solution
This is an accepted solution.
Hi there,
I hope you are well.
Here is the custom CSS code you can use to remove the padding on the mentioned page on mobile:
@media screen and (max-width: 768px){
.collection:has(slider-component) {
padding: 0 !important;
}
}
Please help me check on the code and let me know if it works.
You can add the code here in the Custom CSS field: https://prnt.sc/K_sGBmQQIRgm
Best,
Daisy
Hey @andrew72
Follow these Steps:
1) Go to Online Store
2) Edit Code
3) Find theme.liquid file
4) Add the following code in the bottom of the file above </body> tag
<style>
.collection.section-template--16080751919258__df7ff6a5-a9e1-4c86-af74-f3271eab3c20-padding {
padding-top: 0 !important;
padding-bottom: 0 !important;
}
.banner__box.content-container.content-container--full-width-mobile.color-background-1.gradient {
padding-bottom: 10px !important;
}
</style>
RESULT:
If I managed to help you then, don't forget to Like it and Mark it as Solution!
Best Regards,
Moeed
This is an accepted solution.
Hi there,
I hope you are well.
Here is the custom CSS code you can use to remove the padding on the mentioned page on mobile:
@media screen and (max-width: 768px){
.collection:has(slider-component) {
padding: 0 !important;
}
}
Please help me check on the code and let me know if it works.
You can add the code here in the Custom CSS field: https://prnt.sc/K_sGBmQQIRgm
Best,
Daisy
Hi @andrew72 ,
To remove the padding on the featured product section, you use this custom CSS code:
1. Go to Shopify -> Theme -> Customize -> Open the Custom CSS on theme
2. Copy and paste this custom code on the section > Save
.section-template--16080751919258__df7ff6a5-a9e1-4c86-af74-f3271eab3c20-padding {
padding-top: 0px;
padding-bottom: 0px;
}
I hope it would help you. If you have any question, feel free to ask me.
Hi @andrew72 Please add the below Code:
<style>
@media screen and (max-width: 680px){
.section-template--16080751919258__df7ff6a5-a9e1-4c86-af74-f3271eab3c20-padding {
padding: unset !important;
}
//If you want to decrease the more height then add the below code here.
}
</style>
Please follow the steps:
Result:
If you want to decrease it more then add this piece of code as well.
.banner__box.content-container.content-container--full-width-mobile.color-background-1.gradient {
padding-bottom: 10px !important;
}
Hopefully it will help you. If yes then Please don't forget hit Like and Mark it as solution!
Best Regards
Sahil
- Your
Hey Community 👋 Did you know that March 15th is National Everything You Think Is W...
By JasonH Apr 1, 2025Discover how to increase the efficiency of commerce operations with Shopify Academy's l...
By Jacqui Mar 26, 2025Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025