What's your biggest current challenge? Have your say in Community Polls along the right column.

Reduce padding above product title on mobile - Dawn theme

Reduce padding above product title on mobile - Dawn theme

MelissaG85
Tourist
9 0 3

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. 

Replies 9 (9)

LizHoang
Shopify Partner
285 35 61

Hi @MelissaG85 

 

Can you share with me your store link? I will help you with it 

Please let us know if our reply is helpful by giving it a Like or marking it as a Solution!

Check our Joy Rewards & Loyalty Program
MelissaG85
Tourist
9 0 3

Here's the link Baby Sleep Program 

LizHoang
Shopify Partner
285 35 61

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;
}
}
Please let us know if our reply is helpful by giving it a Like or marking it as a Solution!

Check our Joy Rewards & Loyalty Program

BSSCommerce-B2B
Shopify Partner
1969 564 566

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:

BSSCommerceB2B_0-1730542290032.png

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

MelissaG85
Tourist
9 0 3

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

Rahul_dhiman
Shopify Partner
665 130 135

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
47.png

If this was helpful, hit the like button and accept the solution.
Thanks

Was I helpful?

Buy me a coffee



Want to modify or custom changes or bug fix on store . Or Need help with your store? Or -Want Complete Storefront
Email me -rahul@prowebcoder.com - Skype: live:dhiman.639
Checkout Some Free Sections Here
Mobile:- +91 62390-46167
MelissaG85
Tourist
9 0 3

this didn't work? see screenshot IMG_0140.PNG

Guleria
Shopify Partner
3692 741 1039

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

- Drop an email   if you are looking for quick fix or any customization
- Email: guleriathakur43@gmail.com Skype: live:navrocks1
- Try GEMPAGES a great page builder

VipulBudhiraja
Explorer
60 5 7

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:

  1. Access Your Theme’s CSS:

    • Go to Online Store > Themes in your Shopify admin.
    • Click Actions > Edit code on the Dawn theme.
    • Open the main CSS file, typically named base.css or theme.css.
  2. Add Custom CSS for Mobile Padding:

    • Scroll to the bottom of the file and add the following code. This will target mobile screens and adjust the spacing between the image and title:
      css
      Copy code
      @media only screen and (max-width: 768px) { .product__image-wrapper { margin-bottom: 10px; /* Adjust this value to reduce or increase the space */ } .product__title { margin-top: 5px; /* Adjust this if needed to control spacing above the title */ } }
    • Change the values as needed to get the exact spacing you want.
  3. Save and Preview:

    • Click Save, then preview your store on a mobile device to see the adjustments.

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!