Collection list - Dawn theme - centering row

David308
Shopify Partner
7 0 0

Hello, 

 

How can I center-align a row in a collection list when there are fewer "collections" in the row,

 

David308_0-1684840814285.png

 

Thank you. 

Replies 6 (6)

NomtechSolution
Astronaut
1245 113 146

Use this code:

<style>
  .row.center-align {
    display: flex;
    justify-content: center;
    align-items: center;
  }
</style>
David308
Shopify Partner
7 0 0

Hello, 

 

I inserted the code into theme.liquid above "</head>", but no change occurred.

 

Ollie
Shopify Staff
2218 450 389

Hey @David308.
 
Thanks for reaching out. 
 
I appreciate that you have let us know which theme you are using on your online store as that is very helpful! Looking into the Dawn theme, I noticed that there is not a specific setting that within the Theme Editor to center the collection list. However, you could make a change of coding to have the section displayed as you would like. Since the Dawn theme is designed and supported by Shopify, we can use free design time for Shopify themes to allow our internal teams to make the changes on your behalf.
 
23-11-8724-91662
 
If you are interested in using the design time, you will need to login to your online store using the Contact Us page. This will allow us to securely verify you as the store owner before speaking directly with a Support Advisor about the changes you would like to see.
 
Let me know if you have any questions.

Ollie | Social Care @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit the Shopify Help Center or the Shopify Blog

StoreWatchers
Trailblazer
205 30 34

Hi, @David308 

 

Greetings from the Store Watchers Support Team! Happy to help you today.

 

1. Go to online store > theme > edit code > assets > base.css(file) and Paste the below code at the bottom of the file -> Save

#product-grid{
 display: flex;
 justify-content: center;
}

 

After applying the above CSS code , it will show like the following screenshot:

Screenshot_41.png

Let me know If need further assistance

 

Regards,

Store Watchers Support Team

StoreWatchers - Automate testing for your Shopify store in seconds


If you find my reply helpful, please hit Like and Mark as Solution
Visit us: App Store | Website | FAQs
David308
Shopify Partner
7 0 0

Hi, @StoreWatchers

 

I tried your steps but nothing happen. Do you know where could be the problem? 

 

Thank you. 

David 

StoreWatchers
Trailblazer
205 30 34

Hi, @David308 

 

Please provides us the page Url and password (if store password is enabled) , so that we can give you a right solution .

 

Regards,

Store Watchers Support Team

 

 

StoreWatchers - Automate testing for your Shopify store in seconds


If you find my reply helpful, please hit Like and Mark as Solution
Visit us: App Store | Website | FAQs