Solved

How to center price product in featured collection in dawn theme

Souhiiii
Tourist
4 0 3

Hello can you guys give me a solution I use the dawn theme and I have a featured collection and I need the price of the products in this collection to be in center I tried text-align:center but I don't know which file to put it.

Thank you so much for your help guys.

Accepted Solution (1)
dmwwebartisan
Shopify Partner
12289 2547 3698

This is an accepted solution.

@Souhiiii 

Please add the following code at the bottom of your assets CSS file.

.card-information__wrapper{
text-align: center;
}
.card-information__wrapper>.price{
display: block;
}

Hope this works.

If helpful then please Like and Accept Solution | Email: dmw.webartisan@gmail.com |  Instagram: @dmw.webartisan
Check here PageFly App to customize your pages | #1 Product Filter & Search app on Shopify | The most powerful Shopify page builder app

View solution in original post

Replies 14 (14)

dmwwebartisan
Shopify Partner
12289 2547 3698

@Souhiiii 

Please share your store URL.

If helpful then please Like and Accept Solution | Email: dmw.webartisan@gmail.com |  Instagram: @dmw.webartisan
Check here PageFly App to customize your pages | #1 Product Filter & Search app on Shopify | The most powerful Shopify page builder app
Souhiiii
Tourist
4 0 3

https://clubchamfeur.com/

The first collection of tshirt I want to center the price of each t-shirt thank you.

diego_ezfy
Shopify Partner
2958 568 891

@Souhiiii,

1. In your Shopify Admin go to online store > themes > actions > edit code
2. In your theme.liquid file, find the </body> (press CTRL + F or command + F on Mac)
3. paste this code right above the </body> tag:

<style>
.card-information__wrapper{
    text-align: center;
}
</style>



Kind regards,
Diego

dmwwebartisan
Shopify Partner
12289 2547 3698

This is an accepted solution.

@Souhiiii 

Please add the following code at the bottom of your assets CSS file.

.card-information__wrapper{
text-align: center;
}
.card-information__wrapper>.price{
display: block;
}

Hope this works.

If helpful then please Like and Accept Solution | Email: dmw.webartisan@gmail.com |  Instagram: @dmw.webartisan
Check here PageFly App to customize your pages | #1 Product Filter & Search app on Shopify | The most powerful Shopify page builder app
Souhiiii
Tourist
4 0 3

@dmwwebartisan hey thank you it was very helpful but what about the title of the same collection how can I center it thank you so much in advance you been great help

dmwwebartisan
Shopify Partner
12289 2547 3698

@Souhiiii 

Please add the following code at the bottom of your assets CSS file.

.card-information__wrapper>* {
    text-align: center !important;
}


.card-information__wrapper>.price {
    color: rgb(var(--color-foreground));
    text-align: center !important;
    display: block !important;
}
If helpful then please Like and Accept Solution | Email: dmw.webartisan@gmail.com |  Instagram: @dmw.webartisan
Check here PageFly App to customize your pages | #1 Product Filter & Search app on Shopify | The most powerful Shopify page builder app
mjdubarr
Pathfinder
109 0 29

@dmwwebartisan which Assets? base.css?

 

i'm lost

dmwwebartisan
Shopify Partner
12289 2547 3698

@mjdubarr 

add code your assets/base.css file .

Thanks!

If helpful then please Like and Accept Solution | Email: dmw.webartisan@gmail.com |  Instagram: @dmw.webartisan
Check here PageFly App to customize your pages | #1 Product Filter & Search app on Shopify | The most powerful Shopify page builder app
mjdubarr
Pathfinder
109 0 29

@dmwwebartisan 

Thank you so much! 

 

The code to center pricing worked great! But the code to center collection title didn't work. Am I missing something?

 

 This one right?

 

.card-information__wrapper>* {
text-align: center !important;
}


.card-information__wrapper>.price {
color: rgb(var(--color-foreground));
text-align: center !important;
display: block !important;
}

ssrajsidhu
Visitor
3 0 0

I tried making following changes but price is still aligned to left.

Please help!

Damerrano77
Visitor
3 0 0

Hi,

 

I want to centre align the strikethrough prices on my store or make the current price appear under the striked one, the product for which there is no strikethrough prices are already centre aligned.

 

The store URL is damerrano.com

 

Thanks

KetanKumar
Shopify Partner
36845 3636 11978

@Damerrano77 

can you try this code

1. Go to Online Store->Theme->Edit code
2. Asset->/component-price.css ->paste below code at the bottom of the file.

.card-information .price--on-sale .price__sale {justify-content: center;}

 

If helpful then please Like and Accept Solution.
Want to modify or custom changes on store Hire me.
- Feel free to contact me on bamaniyaketan.sky@gmail.com regarding any help
Shopify Partner | Skype : bamaniya.sky
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing
KIERZ
Visitor
1 0 0

I am trying to center the prices on my website as they are all aligned to the left. I am using the Dawn theme and have tried all the different codes in this thread however none are working.

BOKETTOCOLLECT
Visitor
2 0 1

This worked for me 

 

.card__information{text-align:center;}
.price{text-align:center;}