How can I perfectly center a title and price?

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.

amineguebas.myshopify.com

1 Like

code shiro

1 Like

Hello there,

Enter password page not open.

Screenshot :-

the screen shot is above

1 Like

please share me store preview link.

https://amineguebas.myshopify.com/?_ab=0&_fd=0&_sc=1&key=491b7c20ef9a194cd55bdf423ebf5fbaa48999a11cede1856aaf30c241ac8bfe

2 Likes

Hello There,

  1. In your Shopify Admin go to online store > themes > actions > edit code
  2. 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,

  1. In your Shopify Admin go to online store > themes > actions > edit code
  2. Find Asset >theme.css and paste this at the bottom of the file:
.product-card,.product-card .price dd {
margin: 0;
}
1 Like

hi please how can i center the solde prices in phones ?

1 Like

Hello There,

  1. In your Shopify Admin go to online store > themes > actions > edit code
  2. 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

@amine15

.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

and please how can i add little space between the two prices in computer website