Align the price and reviews text to the center

Align the price and reviews text to the center

SAS37
Tourist
9 0 2

Hello there!

 

So i'm trying to align the price and the reviews on the center, and after I tried many different ways from the shopify community, which none of them helped me, I'm asking you, please, to help me.

 

SAS37_1-1740497368336.png

 

I'm using the latest Dawn theme and as reviews program i'm using Vitals (if matters).

 

Replies 9 (9)

Made4uo-Ribe
Shopify Partner
10211 2427 3078

Hi @SAS37 

Please, share your store URL. Thanks!

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.
SAS37
Tourist
9 0 2
Made4uo-Ribe
Shopify Partner
10211 2427 3078

Thanks for the info try this one. 

  1. From your Shopify admin dashboard, click on "Online Store" and then "Themes".
  2. Find the theme that you want to edit and click on "Actions" and then "Edit code".
  3. 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:

 

@media only screen and (max-width: 749px){
.price__container {
    text-align: center;
}

.Vtl-pr-review-stars-snippet.vtl-pr-review-stars-snippet.vtl-pr__product-title-star-snippets {
    justify-content: center !important;
}
}

 

  • And Save.
  • Result:
  • Made4uoRibe_0-1740500374136.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 are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.
SAS37
Tourist
9 0 2

Thank you a lot!

 

It works. But not for all products. Except for this one: https://reduceriexpress.ro/products/set-2-1-gratis-cutie-depozitare-cu-cadru-metalic-si-ferestre-pli... 

Why is this happening?

Made4uo-Ribe
Shopify Partner
10211 2427 3078

Im not sure, maybe this is the default one. Please add this code on the base.css or where you paste the code. 

 

.price.price--large.price--show-badge {
    text-align: center;
}

 

And Save. 

THis also center align on the dekstop. Let me mw know if you only want in mobile screen only. 

Result:

Made4uoRibe_0-1740517975048.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 are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.
SAS37
Tourist
9 0 2

Still doesn't work.

 

And yes, I want for mobile if you can, please.

LizHoang
Shopify Partner
1251 159 195

Hi @SAS37 , can you share store url??

Please let us know if our reply is helpful by giving it a Like or marking it as a Solution!

Check our Joy Rewards & Loyalty Program

LizHoang
Shopify Partner
1251 159 195

Hi @SAS37 

You can try to follow this step
Step 1: Go to Edit code
Step 2: Find file base.css and add this code at the end of the file

 

 

.price.price--large.price--on-sale.price--show-badge {
    text-align: center !important;
}

 

 

Result: 

LizHoang_0-1740503183467.png

 

Best,

Liz

 

Please let us know if our reply is helpful by giving it a Like or marking it as a Solution!

Check our Joy Rewards & Loyalty Program
SAS37
Tourist
9 0 2

Thank you, Liz.

 

It works. But no on all products.

 

On the example product I showed it doesn't work, but on other products it shows in the middle. Why is that?

 

And the star reviews also doesn't work, but as I see you showed me the code only for the price.