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

Solved
Highlighted
Tourist
10 0 1

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
Highlighted
Shopify Expert
3483 543 820

This is an accepted solution.

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
Highlighted
Tourist
10 0 1

you are the best, thank you very much.

0 Likes