Hello,
how can i remove the spacing ( padding ) between individual photos on collection page in prestige theme. Highly appreciate if someone could point me in the right direction
Hello,
how can i remove the spacing ( padding ) between individual photos on collection page in prestige theme. Highly appreciate if someone could point me in the right direction
Hi @rkamath ,
If you know a bit of coding you can find the selector.
.collection {
padding: 0px;
}
Or If you would mind to share your URL website(with password) so I can give you the specific code. Thanks!
the site is www.mykokids.com and the password to access the URL is myko. ( all lower case)
Hi @rkamath ,
Thank you for the information. I understand that you want to remove the spacing ( padding ) between individual photos on collection page.
.CollectionList.CollectionList--grid.CollectionList--spaced a {
padding: 0px;
}
Result:
This is what you mean right?
I hope it help.
To remove the spacing (padding) between individual photos on the collection page in the Prestige theme, you can modify the CSS code. Here’s how you can do it:
If you’re using “theme.scss.liquid”, add the following CSS code at the bottom of the file:
.template-collection .grid-product__wrapper {
margin-right: 0;
margin-bottom: 0;
}
Not using template.scss.liquid . There is template.liquid . Can I add the code to that file . No clue on coding . Thank you
I think you have _app.css find this one in asset folder. And just paste on the bottom.
Hi, this did the trick. however it applied it to the photos on the home page also. like in the screenshot you included earlier. Also the featured collection, it still shows the spacing between the images. Is there any way to modify the code to include featured collection and exclude the photos on the home page.
Thank you for the above code. Very helpful and much appreciated. This code doesn’t affect the items on the home page . We have got a featured collection that is added to the homepage. Wanted to modify the padding for that also. Any thoughts on how that could be done. wanted to retain the way the photos are on the top section, but on the collection Best Seller, change the padding to make it 0px
Thank you and your kind assistance is much appreciated. I went to customize the theme and added the code under default collections and featured collections custom CSS and it works like a charm.