Brad38
March 8, 2024, 6:12am
1
I need help centering the price on the product page.
I found the correct line in the style.css that formats the price field. But I am unable the add the correct code to center it.
The current line is:
.product-single__meta .price-item.price-item–regular{font-weight:normal;font-size:30px;line-height:30px;color:#ff0303 ;}
Moeed
March 8, 2024, 6:18am
2
Hey @Brad38
Welcome to Shopify Community! Can you share your Store URL so I can have a look on it? Also, if you have password enabled then please share the password as well. Your cooperation would be greatly appreciated.
Best Regards,
Moeed
Hello @Brad38
You can add code by following these steps
Go to Online Store → Theme → Edit code.
Open your theme.liquid file
Paste the below code before on theme.liquid
.price {
text-align: center !important;
}
Was my reply helpful? Click Like to let me know!
Was your question answered? Mark it as an Accepted Solution.
Moeed
March 8, 2024, 6:47am
5
Are you sure this is the correct URL?
Brad38
March 8, 2024, 6:49am
6
Moeed
March 8, 2024, 6:58am
7
Hey @Brad38
Follow these Steps:
Go to Online Store
Edit Code
Find theme.liquid file
Add the following code in the bottom of the file above tag
{% if template contains 'product' %}
{% endif %}
RESULT:
If I managed to help you then, don’t forget to Like it and Mark it as Solution!
Best Regards,
Moeed
hi @Brad38
You can try to use this code and check again
.product-single__meta {
text-align: center;
}
Moeed
March 8, 2024, 7:30am
10
Thank you for your reply. I’m glad to hear that the solution worked well for you. If you require any more help, please don’t hesitate to reach out. If you find this information useful, a Like would be greatly appreciated.