All things Shopify and commerce
Hi, I was wondering how to remove some of the padding between the items on my collection pages. For reference I am using the prestige theme and I have already added the recommended code below to the 'theme.liquid' section to make the products display full width.
<style>
.product-card__info {
position: absolute !important;
align-self: self-end !important;
padding-left: 10px !important;
padding-bottom: 5px !important;
}
.v-stack.justify-items-center.gap-1 {
justify-items: left !important;
}
.color-scheme.color-scheme--scheme-1 .container {
margin: 0 !important;
max-width: 100% !important;
}
</style>
URL - https://927103-16.myshopify.com/
The kind of padding size I'm wanting -
Thank you! Emily 😁
Hey @emilyaugstudios
Follow these Steps:
1) Go to Online Store
2) Edit Code
3) Find theme.liquid file
4) Add the following code in the bottom of the file above </body> tag
<style>
.product-list {
row-gap: 2px !important;
column-gap: 4px !important;
}
</style>
RESULT:
If I managed to help you then, don't forget to Like it and Mark it as Solution!
Best Regards,
Moeed
Hi Moeed, that worked thank you. My only issue is that it appears to left align the content, leaving white space on the right hand side. Do you know how to fix this?
Thank you as always!🙂
Hey @emilyaugstudios
Try this updated code.
<style>
.product-list {
row-gap: 2px !important;
column-gap: 2px !important;
place-content: center !important;
}
</style>
RESULT:
If I managed to help you then, don't forget to Like it and Mark it as Solution!
Best Regards,
Moeed
Hi Moeed, there still seems to be some padding either side. When I remove the code you recommended to try, it displays full width properly, with no extra white space padding. Any thoughts?🤔
Without code -
With code -
Hi, thank you for all the help but unfortunately nothing is working without leaving weird padding on the page so I think I will just leave this for now. Maybe it's something about the prestige theme that doesn't allow for full width products and small row padding. Thank you again.
for space right side, you can try this code above </style> following previous solution:
<style>
.product-list {
row-gap: 2px !important;
column-gap: 4px !important;
margin: 0 -20px!important;
}
</style>
Hope this can help you,
If our suggestions are useful, please let us know by giving it a like. Thank you 😍
If our suggestions are useful, please let us know by giving it a like, marking it as a solution, or donating here ☕.
B2B Solution & Custom Pricing | Product Labels by BSS
Need help from our expert? Kindly share your request with us via community@bsscommerce.com
Hi! Thank you for the help, at first I thought it worked but as you can see it pushes the first row of products off the screen a bit, this theme is harder to work with 😅 Anymore thoughts on this? Thank you!
Hi @emilyaugstudios,
Step 1: Go to Shopify Admin -> Online Store ->Theme -> Edit code
Step 2: Search file theme.liquid
Step 3: Insert this code above </head> tag:
<style>
.collection__main .product-card__info {
padding-left: 0px !important;
padding-bottom: 0px !important;
}
</style>
Hope this can help you,
If our suggestions are useful, please let us know by giving it a like or marking it as a solution. Thank you 😍
If our suggestions are useful, please let us know by giving it a like, marking it as a solution, or donating here ☕.
B2B Solution & Custom Pricing | Product Labels by BSS
Need help from our expert? Kindly share your request with us via community@bsscommerce.com
Hello @emilyaugstudios
Go to online store ----> themes ----> actions ----> edit code ---->theme.css
add this code at the end of the file.
.product-list {
row-gap: 2px !important;
column-gap: 2px !important;
}
result
If this was helpful, hit the like button and accept the solution.
Thanks
By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024Thanks to everyone who participated in our AMA with 2H Media: Marketing Your Shopify St...
By Jacqui Sep 6, 2024