How to center product if the collection contains only one product?

Solved
New Member
2 0 0

Hi,

 

Thanks in advance. Here's the URL of the collection I want the product to center:

 

https://avenuethelabel.com.au/collections/gift-card

0 Likes

Success.

Shopify Expert
2458 414 518

HI @bosslaw 

we cant check product if it one or more by css for that need to make some custom code, but you can make this product in center by this css:

Add this css in Asset ->theme.scss file at bottom:

.collection  .product-item{    margin: 0 auto;}
Want to modify or custom changes on store hire me.
If helpful then please Like and Accept Solution.
Email: jasoliyabrijesh123@gmail.com
Skype: jasoliya.brijesh
Want to get Free review and advice for sale on store ?? just text me here
1 Like
New Member
2 0 0

you are the best, thank you very much.

0 Likes