Shopify themes, liquid, logos, and UX
Hi I'm trying to work out how to reduce the padding between the product image and the product title in the dawn theme on mobile.
Hi @MelissaG85
Can you share with me your store link? I will help you with it
Hi @MelissaG85
You can try the instruction here :
1. Go to Shopify > Theme > customize > Custom CSS
2. Copy and paste the code below > save
@media screen and (max-width: 768px){
.grid__item.product__media-wrapper slider-component.slider-mobile-gutter .slider-buttons {
margin-block: -10px !important;
}
.product__info-wrapper.grid__item {
margin-top: -10px !important;
}
}
Step 1: Go to Shopify Admin -> Online Store ->Theme -> Edit code
Step 2: Search file theme.liquid
Step 3: Insert this code above </head>
<style>
.product__info-wrapper .product__title {
margin-top: 0!important
}
</style>
Result:
If it helps you, please like and mark it as the solution.
Best Regards 😊
B2B Wholesale Solution: Streamline your B2B operation with advanced features like wholesale registration forms, custom pricing.
B2B Portal, Quote, Net 30: Speed up purchasing and streamline your quotation process with advanced features like quick order, request for quote.
B2B Lock Password Protect: Easily control access to pages, products, and pricing with robust features.
BSS Commerce - Full-service eCommerce Agency I Use Shopify for 1$ in the first month now
Thank you, but it doesn't look like it made much of a difference. Maybe it's the image padding that I need to change
Hello @MelissaG85
Go to online store ----> themes ----> actions ----> edit code ----> assets ---->section-main-product.css
add this code at the end of the file and save.
.product_title {
margin-top: 0px !important;
}
result
If this was helpful, hit the like button and accept the solution.
Thanks
this didn't work? see screenshot
Hello @MelissaG85 ,
Follow these steps:
1. Go to Online Store -> Theme -> Edit code
2. Open your base.css file and paste the following code at the bottom:
@media screen and (max-width: 767px) {
.product .slider-button {
height: auto !important;
}
.product__text.caption-with-letter-spacing + .product__title {
margin-top: 0 !important;
}
}
Thanks
To reduce the padding between the product image and the product title on mobile in the Dawn theme, you can add custom CSS to target this spacing specifically for mobile devices.
Here’s how to do it:
Access Your Theme’s CSS:
Add Custom CSS for Mobile Padding:
Save and Preview:
This should give you more control over the spacing on mobile, improving the layout for a tighter look.
Increase your conversion rate and enhance your user's shopping experience with smart guidance from the Debales AI Chatbot on Shopify! Ready to assist users effortlessly—let’s chat!
Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024