centre product and collection content dawn theme 11.0

Solved

centre product and collection content dawn theme 11.0

massmonster
Shopify Partner
30 0 6

Hello

 

i am having trouble finding how to centre content on my site
as you can see, it is left-aligned. I want the product and collection cards to be centre aligned

my site is www.sundaymass.store

password is CRUSADE


Accepted Solution (1)

Rahul_dhiman
Shopify Partner
776 149 160

This is an accepted solution.

Hello @massmonster 

Go to online store ---------> themes --------------> actions ------> edit code------->base.css -----> line number 895
search this code

.grid {
display: flex;
margin-bottom: 2rem;
padding: 0;
list-style: none;
column-gap: var(--grid-mobile-horizontal-spacing);
row-gap: var(--grid-mobile-vertical-spacing);
flex-wrap: wrap;
justify-content: flex-start;
}


and replace with this code.

.grid {
display: flex;
margin-bottom: 2rem;
padding: 0;
list-style: none;
column-gap: var(--grid-mobile-horizontal-spacing);
row-gap: var(--grid-mobile-vertical-spacing);
flex-wrap: wrap;
justify-content: center;
}

and the result will be
23.png


If this was helpful, hit the like button and mark the job as completed.
Thanks

Want to modify or custom changes or bug fix on store . Or Need help with your store? Or -Want Complete Storefront

Contact here


BEST CUSTOMER ACCOUNTS APP WITH CUSTOM WISHLIST OPTION 
TRY OUR APP :

PWC: Customer Accounts & Pages

View solution in original post

Replies 3 (3)

DanCodes
Shopify Partner
55 9 6

Include this style in your stylesheet:
.collection-list, .product-grid {
justify-content: center;
}

If you'd like to support my work, you're welcome to treat me to a coffee here: Buy Me a Coffee
If you'd like to hire me, feel free to contact me: E-mail WhatsApp

Made4uo-Ribe
Shopify Partner
10038 2387 3014

Hi @massmonster 

Do you mean this? 

Made4uoRibe_0-1721206344697.png

Made4uoRibe_1-1721206445713.png

 

If it is, check this one. 

  1. From you Admin page, go to Online Store > Themes
  1. Select the theme you want to edit
  2. Under the Asset folder, open the main.css(base.css, style.css or theme.css)
  3. Then place the code below at the very bottom of the file.

 

.title-wrapper-with-link {
    justify-content: center;
}
.collection-hero__description, .collection-hero__title {
        max-width: 100%;
        text-align: center;
    }

 

  • And Save. 

 

Please don't forget to Like and Mark Solution to the post that helped you. Thanks!

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.

Rahul_dhiman
Shopify Partner
776 149 160

This is an accepted solution.

Hello @massmonster 

Go to online store ---------> themes --------------> actions ------> edit code------->base.css -----> line number 895
search this code

.grid {
display: flex;
margin-bottom: 2rem;
padding: 0;
list-style: none;
column-gap: var(--grid-mobile-horizontal-spacing);
row-gap: var(--grid-mobile-vertical-spacing);
flex-wrap: wrap;
justify-content: flex-start;
}


and replace with this code.

.grid {
display: flex;
margin-bottom: 2rem;
padding: 0;
list-style: none;
column-gap: var(--grid-mobile-horizontal-spacing);
row-gap: var(--grid-mobile-vertical-spacing);
flex-wrap: wrap;
justify-content: center;
}

and the result will be
23.png


If this was helpful, hit the like button and mark the job as completed.
Thanks

Want to modify or custom changes or bug fix on store . Or Need help with your store? Or -Want Complete Storefront

Contact here


BEST CUSTOMER ACCOUNTS APP WITH CUSTOM WISHLIST OPTION 
TRY OUR APP :

PWC: Customer Accounts & Pages