All things Shopify and commerce
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
Solved! Go to the solution
This is an accepted solution.
i check your base.css.
Why this code is in the base.css?
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!
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:
Please don't forget to Like and Mark Solution to the post that helped you. Thanks!
Unfortunately it didn't work.
This is an accepted solution.
i check your base.css.
Why this code is in the base.css?
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!
It worked after i deleted the style tag.
Thanks
2m ago Learn the essential skills to navigate the Shopify admin with confidence. T...
By Shopify Feb 12, 2025Learn how to expand your operations internationally with Shopify Academy’s learning path...
By Shopify Feb 4, 2025Hey Community, happy February! Looking back to January, we kicked off the year with 8....
By JasonH Feb 3, 2025