Re: center product collection

Solved

center product collection

AdamT06
Tourist
23 0 1

Hello

I've been having trouble for a while now getting my collection centered here on my home page. I have tried a lot of code in base.css but none of it works. hope someone can help me solve this problem.

 

Website: www.TruthTrust.dk

code: PINK

 

here are some pics of what it looks like:

AdamT06_0-1722860133999.png

AdamT06_1-1722860146948.png

 

and here is a pic of how i want it to look:

AdamT06_2-1722860322242.png

Accepted Solution (1)

Huptech-Web
Shopify Partner
937 187 197

This is an accepted solution.

Hello! @JoyDion Please follow these steps to add this CSS code:

1. Go to your Online Store
2. Click on "Themes"
3. Select "Edit code"
4. Open your CSS file. If you have a custom CSS file, open that instead.
5. If you can't find your custom CSS file, open "base.css"
6. Add the following code at the end of the file.

 

 

 

.grid {
    justify-content: center;
}
body .card__inner.gradient {
    background: #f2f2f2 !important;
}

 

 

 

Rishihuptech_0-1722860752930.png

 


If you need further assistance, please let me know. If you found my help useful, consider liking this message and marking it as the solution.
Thank you 
k.K

If you found this response helpful, please do like and accept the solution. Thanks!
Need support with Customizing your Shopify store?
Feel free to contact me at [email protected] or Visit our website Huptech Web.
Instant Shortcode Builder: Integrate customizable UI features anywhere in your store - No coding knowledge required

View solution in original post

Replies 5 (5)

Huptech-Web
Shopify Partner
937 187 197

This is an accepted solution.

Hello! @JoyDion Please follow these steps to add this CSS code:

1. Go to your Online Store
2. Click on "Themes"
3. Select "Edit code"
4. Open your CSS file. If you have a custom CSS file, open that instead.
5. If you can't find your custom CSS file, open "base.css"
6. Add the following code at the end of the file.

 

 

 

.grid {
    justify-content: center;
}
body .card__inner.gradient {
    background: #f2f2f2 !important;
}

 

 

 

Rishihuptech_0-1722860752930.png

 


If you need further assistance, please let me know. If you found my help useful, consider liking this message and marking it as the solution.
Thank you 
k.K

If you found this response helpful, please do like and accept the solution. Thanks!
Need support with Customizing your Shopify store?
Feel free to contact me at [email protected] or Visit our website Huptech Web.
Instant Shortcode Builder: Integrate customizable UI features anywhere in your store - No coding knowledge required

niraj_patel
Shopify Partner
2378 514 511

Hello @AdamT06 

You can add code by following these steps

1. Go to Online Store -> Theme -> Edit code.
2. Open your theme.liquid file

3. Paste the below code before </body> on theme.liquid
<style>
  .collection .grid {
      justify-content: center;
   }
</style>

niraj_patel_0-1722860856157.png

Was my reply helpful? Click Like to let me know!
Was your question answered? Mark it as an Accepted Solution.

Shopify Partner || Helping eCommerce Stores
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution.
- For further discussion contact: Email ID- [email protected]

Rahul_dhiman
Shopify Partner
545 109 109

Hello @AdamT06 
Go to online store ---------> themes --------------> actions ------> edit code------->base.css
add this code at the end of the file.

.grid {
justify-content: space-evenly;
}

result
7.png

If this was helpful, hit the like button and accept the solution.
Thanks

Was I helpful?

Buy me a coffee



Want to modify or custom changes or bug fix on store . Or Need help with your store? Or -Want Complete Storefront
Email me [email protected] - Skype: live:dhiman.639
Checkout Some Free Sections Here
Mobile:- +91 62390-46167

vinh0225
Shopify Partner
128 26 24

Hi @AdamT06 

It seems like the current collection page is working as you wanted.
Could you please clarify what you require exactly?

vinh0225_0-1722861360109.png

 

Was my response useful?  Click Like to let me know!
Was your query resolved? ✓ Mark it as a Resolved Solution
If you need custom Shopify changes, ️you can hire me.
Contact me at  ✉️ [email protected].

BSS-TekLabs
Shopify Partner
2350 701 826

- Here is the solution for you @AdamT06 
- Please follow these steps:

z5686811214059_e66de1953f1db631f9134af5cdb796ad.jpg

- Then find the base.css or theme.css file.
- Then add the following code at the end of the file and press 'Save' to save it.

.grid:last-child {
    justify-content: center !important;
}

- Here is the result you will achieve:

BSSTekLabs_0-1722864303021.png

BSSTekLabs_1-1722864314675.png

 

 

 

- Please press 'Like' and mark it as 'Solution' if you find it helpful. Thank you.

If our suggestions are useful, please let us know by giving it a like or marking it as a solution.


Salepify: Efficiently increase sales conversion with sale-driven features like auto add to cart, free gifts (free plan available)


Salemate: Boost your AVO with 2-layer offer, countdown upsell in your post purchase page


BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now