Shopify themes, liquid, logos, and UX
We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more
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.
I'm using the latest Dawn theme and as reviews program i'm using Vitals (if matters).
Hi @SAS37
Please, share your store URL. Thanks!
Thanks for the info try this one.
@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;
}
}
Please don't forget to Like and Mark Solution to the post that helped you. Thanks!
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?
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:
Please don't forget to Like and Mark Solution to the post that helped you. Thanks!
Still doesn't work.
And yes, I want for mobile if you can, please.
Hi @SAS37 , can you share store url??
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:
Best,
Liz
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.