Cart page justifying items center (Dawn theme)

Solved

Cart page justifying items center (Dawn theme)

MagdalenaBB
Excursionist
49 0 15

Hello dear community!

I am trying to personalise my cart page but I can't figure out how to justify the items to the center - as shown in the screenshots. Also, is it possible for the PayPal button to not be yellow? 

 

Website - maisonmagdalena.com
Password - MaisonMagdalena.222

 

Thank you very much for your help! 

MagdalenaBB_0-1727512235975.png

MagdalenaBB_1-1727512377959.png

 

 

Accepted Solutions (2)

Moeed
Shopify Partner
7379 1996 2438

This is an accepted solution.

Hey @MagdalenaBB 

 

Follow these Steps:

1) Go to Online Store
2) Edit Code
3) Find theme.liquid file

4) Add the following code in the bottom of the file above </body> tag

<style>
.title-wrapper-with-link {
    width: 100% !important;
    justify-content: center !important;
}
.title-wrapper-with-link a {
    place-self: center !important;
}
.cart__footer-wrapper:last-child .cart__footer {
    justify-content: center !important;
}
.cart__blocks {
    margin: 0 !important;
}
</style>

RESULT:

Moeed_0-1727512758350.png

 

If I managed to help you then, don't forget to Like it and Mark it as Solution!

 

Best Regards,
Moeed

- Need a Shopify Specialist? Chat on WhatsApp

- Get a quick Shopify quote – Click here!

- Custom Design | Advanced Coding | Store Modifications


View solution in original post

Moeed
Shopify Partner
7379 1996 2438

This is an accepted solution.

Hey @MagdalenaBB 

 

Keep the previous code and add this new code above </style> in the end of theme.liquid file.

.totals {
    justify-content: center !important;
}
small.tax-note.caption-large.rte {
    text-align: center !important;
}

RESULT:

Moeed_0-1727513469615.png

 

If I managed to help you then, don't forget to Like it and Mark it as Solution!

 

Best Regards,
Moeed

- Need a Shopify Specialist? Chat on WhatsApp

- Get a quick Shopify quote – Click here!

- Custom Design | Advanced Coding | Store Modifications


View solution in original post

Replies 3 (3)

Moeed
Shopify Partner
7379 1996 2438

This is an accepted solution.

Hey @MagdalenaBB 

 

Follow these Steps:

1) Go to Online Store
2) Edit Code
3) Find theme.liquid file

4) Add the following code in the bottom of the file above </body> tag

<style>
.title-wrapper-with-link {
    width: 100% !important;
    justify-content: center !important;
}
.title-wrapper-with-link a {
    place-self: center !important;
}
.cart__footer-wrapper:last-child .cart__footer {
    justify-content: center !important;
}
.cart__blocks {
    margin: 0 !important;
}
</style>

RESULT:

Moeed_0-1727512758350.png

 

If I managed to help you then, don't forget to Like it and Mark it as Solution!

 

Best Regards,
Moeed

- Need a Shopify Specialist? Chat on WhatsApp

- Get a quick Shopify quote – Click here!

- Custom Design | Advanced Coding | Store Modifications


MagdalenaBB
Excursionist
49 0 15

Works perfect! Thank you 😍

However - and sorry for being annoying - the 'estimated total' and the text underneath it act a little strange, they are in the center but it seems they are justified to the right edge of the checkout button. Is it possible to change it? 

Thanks again! 

Moeed
Shopify Partner
7379 1996 2438

This is an accepted solution.

Hey @MagdalenaBB 

 

Keep the previous code and add this new code above </style> in the end of theme.liquid file.

.totals {
    justify-content: center !important;
}
small.tax-note.caption-large.rte {
    text-align: center !important;
}

RESULT:

Moeed_0-1727513469615.png

 

If I managed to help you then, don't forget to Like it and Mark it as Solution!

 

Best Regards,
Moeed

- Need a Shopify Specialist? Chat on WhatsApp

- Get a quick Shopify quote – Click here!

- Custom Design | Advanced Coding | Store Modifications