Solved

center product grid

MerlijnMol
Visitor
3 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
5938 1429 1759

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!

Please don't forget to 

Like

 and 

Mark Solution 

to the post that helped you. Thanks!
Sip, savor, and support – your

Coffee Tip

 helps us keep coding magic.❤️❤️❤️
For FREE, premium codes, and trusted, knowledgeable Shopify developers, visit us at

Made4uo.com


HDL-Shin
Shopify Partner
80 20 12

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
Navigator
305 88 133

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!


PageFly - #1 Page Builder for Shopify merchants.


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


Optimize your store’s mobile shopping experience with the Blum theme.