How to center title and price
1 Like
Hello There,
Please share your store URL and Screenshot.
So that I will check and let you know the exact solution here.
1 Like
code shiro
1 Like
the screen shot is above
1 Like
please share me store preview link.
Hello There,
- In your Shopify Admin go to online store > themes > actions > edit code
- Find Asset >theme.css and paste this at the bottom of the file:
.product-card,.product-card .price {
text-align: center;
justify-content: center;
align-items: center;
}
.price .price__regular {
margin: 0;
}
Screenshot :- https://image.prntscr.com/image/sm6mzDH-TUGailg0m6TVSw.png
.product-card__title {
display: block !important;
text-align: center !important;
}
.price{
text-align: center !important;
}
@amine15
Add this code in the bottom of the theme.css or theme.scss
when i tried the code below the price isn t in the exact middle
.product-card,.product-card .price {
text-align: center;
justify-content: center;
align-items: center;
}
.price .price__regular { margin: 0;
}
1 Like
Hello There,
- In your Shopify Admin go to online store > themes > actions > edit code
- Find Asset >theme.css and paste this at the bottom of the file:
.product-card,.product-card .price dd {
margin: 0;
}
1 Like
Hello There,
- In your Shopify Admin go to online store > themes > actions > edit code
- Find Asset >theme.css and paste this at the bottom of the file:
.price--on-sale .price__sale {
justify-content: center;
margin: 0;
}
1 Like
.price--on-sale .price__sale {
flex-direction: row;
flex-wrap: wrap;
text-align: center !important;
}
.price__sale {
display: block !important;
}
@amine15
Add this code in the theme.scss or theme.css
1 Like