Re: center product grid

Solved

center product grid

MerlijnMol
Tourist
4 0 1

https://garcondemiel.com
How do i center my products in the collection tabs?

Current:

MerlijnMol_0-1715350060407.png

 

where i want them to be

shp.png

 

Accepted Solution (1)

Atanu_Sarkar
Shopify Partner
10 3 3

This is an accepted solution.

Hello @MerlijnMol, Please add the following CSS code to the bottom of your base.css file:

.collection #product-grid {
    justify-content: center;
}

You can access the base.css file by following these steps:

  1. Navigate to "Themes" in your Shopify dashboard.
  2. Click on "Edit code" for your current theme.
  3. Locate the base.css file under the "Assets" folder.

Once you've added the CSS code, save your changes. If you need further assistance, feel free to reach out.

 

Thank you.

View solution in original post

Replies 4 (4)

Atanu_Sarkar
Shopify Partner
10 3 3

This is an accepted solution.

Hello @MerlijnMol, Please add the following CSS code to the bottom of your base.css file:

.collection #product-grid {
    justify-content: center;
}

You can access the base.css file by following these steps:

  1. Navigate to "Themes" in your Shopify dashboard.
  2. Click on "Edit code" for your current theme.
  3. Locate the base.css file under the "Assets" folder.

Once you've added the CSS code, save your changes. If you need further assistance, feel free to reach out.

 

Thank you.

Made4uo-Ribe
Shopify Partner
8856 2116 2600

Hi @MerlijnMol 

Check thiso one.

From your Shopify admin dashboard, click on "Online Store" and then "Themes".

Find the theme that you want to edit and click on "Actions" and then "Edit code".

In the "Assets" folder, click on "base.css, style.css or theme.css" file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:

 

ul#product-grid {
    justify-content: center;
}

 

And Save. 

Result:

Made4uoRibe_0-1715350878957.png

 

 

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 is highly appreciated. Coffee tips fuels my dedication.
Get EXPERIENCED Shopify developers at affordable rates—visit Made4Uo.com for quick quote!
Do not lost your Shopify store! Get FREE trial with ✔️ Rewind Backup: Automatic, reliable, stress-free.
Need THEME UPDATES but has custom codes? No worries, contact us for affordable price.

HDL-Shin
Shopify Partner
80 21 16

Hi @MerlijnMol

You can try this code by following these steps:

Step 1: Go to Shopify Admin -> Online Store ->Theme -> Edit code

Step 2: Search file base.css or theme.css 

Step 3: Insert the below code at the bottom of the file -> Save

.product-grid-container:has(.collection) #product-grid {
    justify-content: center;
}

Final Result: 

HDLShin_0-1715351545695.png

Hope this can help you
Kind regards,

HDH-Shin

 

If our suggestions are useful, please let us know by giving it a like or marking it as a solution.
♥️♥️♥️ HDL-Shin || Shopify Partner ♥️♥️♥️

PageFly-Amelia
Shopify Partner
603 165 236

Hello @MerlijnMol 

This is Amelia at PageFly - Shopify Advanced Page Builder app.

 

You can try the following steps I have provided to help you solve the problem you are facing:

Step 1: Online Stores > Themes > Edit code

Step 2: Choose file base.css or theme.css

Step 3: Add code

.collection #product-grid {
    justify-content: center !important;
}

 

Hoping my solution helps you solve your problem.

Best regards,

Amelia | PageFly

Please let me know if it works by giving it a Like or marking it as a solution!


➜ Optimize your Shopify store with PageFly Page Builder (Free plan available) 
➜ Weekly updated Shopify tutorials on YouTube 


All features are available from Free plan. Live Chat Support is available 24/7.