How to reduce space between product title and price on product page in Dawn theme

Solved

How to reduce space between product title and price on product page in Dawn theme

sunny96x
Explorer
49 0 18

I want to reduce this gap on my website a little bit so all the spacings are equal:

 

Screenshot 2024-09-27 174836.png

 

Website: https://shopstellory.com/products/sticky-inserts

 

Accepted Solution (1)

Made4uo-Ribe
Shopify Partner
8172 1966 2403

This is an accepted solution.

Hi @sunny96x 

Check this one. 

From you Admin page, go to Online Store > Themes

Select the theme you want to edit

Under the Asset folder, open the main.css(base.css, style.css or theme.css)

Then place the code below at the very bottom of the file.

 

div#price-template--23553363607828__main {
    margin-top: .5rem;
}

 

And Save. 

result:

Made4uoRibe_0-1727435331410.png

 

 

 

Please don't forget to Like and Mark Solution to the post that helped you. Thanks!

If this fixed your issue Likes and Accept as Solution is highly appreciated. Coffee tips fuels my dedication.
Get EXPERIENCED Shopify developers at affordable rates—visit Made4Uo.com for quick quote!
Do not lost your Shopify store! Get FREE trial with ✔️ Rewind Backup: Automatic, reliable, stress-free.
Need THEME UPDATES but has custom codes? No worries, contact us for affordable price.

View solution in original post

Replies 3 (3)

GTLOfficial
Shopify Partner
538 114 107

Hello @sunny96x 
Go to online store ---------> themes --------------> actions ------> edit code------->assets-----> section-main-product.css
add this code at the end of the file.

.product__info-container > * + * {
margin: 0;
}

result
8.png

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

- Buy me a Pizza
- If helpful then please Like and Accept Solution.
- Want to modify or custom changes or bug fix on the store Hire me. GTL web solutions
- Want Complete Storefront: Send an email ⇨- Email: info@gtlofficial.com - Skype: ritesh_27dh

Moeed
Shopify Partner
5323 1437 1723

Hey @sunny96x 

 

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>
div#price-template--23553363607828__main {
    margin-top: 0 !important;
}
</style>

 

RESULT:

Moeed_0-1727432506371.png

 

If I managed to help you then, don't forget to Like it and Mark it as Solution!

 

Best Regards,
Moeed

- Need a Shopify Specialist? Chat on WhatsApp

- Custom Design | Advanced Coding | Store Modifications


Made4uo-Ribe
Shopify Partner
8172 1966 2403

This is an accepted solution.

Hi @sunny96x 

Check this one. 

From you Admin page, go to Online Store > Themes

Select the theme you want to edit

Under the Asset folder, open the main.css(base.css, style.css or theme.css)

Then place the code below at the very bottom of the file.

 

div#price-template--23553363607828__main {
    margin-top: .5rem;
}

 

And Save. 

result:

Made4uoRibe_0-1727435331410.png

 

 

 

Please don't forget to Like and Mark Solution to the post that helped you. Thanks!

If this fixed your issue Likes and Accept as Solution is highly appreciated. Coffee tips fuels my dedication.
Get EXPERIENCED Shopify developers at affordable rates—visit Made4Uo.com for quick quote!
Do not lost your Shopify store! Get FREE trial with ✔️ Rewind Backup: Automatic, reliable, stress-free.
Need THEME UPDATES but has custom codes? No worries, contact us for affordable price.