I want to change the regular price font same as sale price on product page only

I want to change the regular price font same as sale price on product page only

swayurindia
Excursionist
144 0 9

I want to change the regular price font same as sale price on product page only16.08.2023-2.JPG16.08.2023.JPG

Replies 13 (13)

Moeed
Shopify Partner
7704 2070 2550

Hey @swayurindia 

Could you please provide your Store URL and, if applicable, the Password too? Your cooperation is greatly appreciated!

Best Regards,
Moeed

- Need a Shopify Specialist? Chat on WhatsApp

- Get a quick Shopify quote – Click here!

- Custom Design | Advanced Coding | Store Modifications


swayurindia
Excursionist
144 0 9
Moeed
Shopify Partner
7704 2070 2550

Hey @swayurindia 

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>
.price--on-sale .price-item--regular {
    font-size: 21px;
    font-weight: bolder;
}
</style>

Moeed_0-1692164549949.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

- Get a quick Shopify quote – Click here!

- Custom Design | Advanced Coding | Store Modifications


swayurindia
Excursionist
144 0 9

The solution is not working. Pls help me.

Moeed
Shopify Partner
7704 2070 2550

Hey @swayurindia 

If you follow the steps correctly then it will work. Can you share a screenshot that where you pasted the code?

- Need a Shopify Specialist? Chat on WhatsApp

- Get a quick Shopify quote – Click here!

- Custom Design | Advanced Coding | Store Modifications


swayurindia
Excursionist
144 0 9

Actually I want show the product price of the products which are not on sale just like the sale price font size.

 

That's why I had attached the other screenshot as well.

Moeed
Shopify Partner
7704 2070 2550

Hey @swayurindia 
Remove the previous code and add this new code.

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>
span.price-item.price-item--regular {
    font-size: 24px !important;
    font-weight: bolder;
}
</style>

Moeed_0-1692166149059.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

- Get a quick Shopify quote – Click here!

- Custom Design | Advanced Coding | Store Modifications


swayurindia
Excursionist
144 0 9

Font size of product price on homepage, search bar, collections page, all have been changed as following.

 

All this I have tried earlier as well. Please suggest some other code.

swayurindia
Excursionist
144 0 9

16.08.2023-3.JPG16.08.2023-4.JPG16.08.2023-5.JPG

Moeed
Shopify Partner
7704 2070 2550

Hey @swayurindia 


Apologies, Please remove the previous code and add this new code above </body> in theme.liquid file. This code will only change the prices from the product page.

 

{% if template contains 'product' %}
<style>
span.price-item.price-item--regular {
    font-size: 24px !important;
    font-weight: bolder;
}
</style>
{% endif %}

 

 

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

- Get a quick Shopify quote – Click here!

- Custom Design | Advanced Coding | Store Modifications


swayurindia
Excursionist
144 0 9

Still the size of the price font is not changed in search bar and in related products on product page the size have not changed.

swayurindia
Excursionist
144 0 9

Please help us out it would be a great pleasure if you help out. Since we're trying this for last 1 month

 

But no proper solution I am getting

swayurindia
Excursionist
144 0 9

Still the size of the price font is not changed in search bar and in related products on product page the size have not changed.

Please help us out it would be a great pleasure if you help out. Since we're trying this for last 1 month

 

But no proper solution I am getting