How can I align product prices to the right and increase spacing?

Solved

How can I align product prices to the right and increase spacing?

Good_Mood
Excursionist
42 0 7

Hi There,

 

I am trying to do some changes to the price in the product page, first i would like to align price to the right, moreover i want to increase the space between the price and the variant picker above.

 

Thanks in advance

Good_Mood_0-1702139405614.png

 

Accepted Solution (1)
Made4uo-Ribe
Shopify Partner
8376 2004 2463

This is an accepted solution.

i check your base.css.

Made4uoRibe_0-1702141178883.png

Why this code is in the base.css?

Made4uoRibe_1-1702141222873.png

This code, must be in the theme.liquid before the </body> tag. or if you like to put on this file you must take out the <style></style> tag. Please, take out so the after code will work. 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 4 (4)

Made4uo-Ribe
Shopify Partner
8376 2004 2463

Hi @Good_Mood 

Check this one. 

From your Shopify admin dashboard, click on "Online Store" and then "Themes".

Find the theme that you want to edit and click on "Actions" and then "Edit code".

In the "Assets" folder, click on "base.css, style.css or theme.css" file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:

 

.price.price--large.price--show-badge {
    text-align: right !important;
    padding-top: 1rem !important;
}

 

And Save. 

Result:

Made4uoRibe_0-1702140020929.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.
Good_Mood
Excursionist
42 0 7

Unfortunately it didn't work.

Made4uo-Ribe
Shopify Partner
8376 2004 2463

This is an accepted solution.

i check your base.css.

Made4uoRibe_0-1702141178883.png

Why this code is in the base.css?

Made4uoRibe_1-1702141222873.png

This code, must be in the theme.liquid before the </body> tag. or if you like to put on this file you must take out the <style></style> tag. Please, take out so the after code will work. 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.
Good_Mood
Excursionist
42 0 7

It worked after i deleted the style tag.

 

Thanks