Hi, I want to change collection page from current looking to full width, and also make gap smaller between products image.
here is my web: www.nintty.com
code 123123
Thanks
A user seeks to modify their Shopify collection page to full width and reduce gaps between product images.
Proposed Solutions:
PageFly-Lucas provides step-by-step instructions:
</body> tag targeting .container with max-width: 100% !importantjackjohn1 offers alternative CSS approach:
.collection-page width to 100%margin-right values on .product-image to reduce spacing between imagesCurrent Status:
The original poster tried PageFly-Lucas’s initial solution but reported no changes occurred. PageFly-Lucas then provided updated code targeting .container for a second attempt.
Note: The conversation text appears partially reversed/corrupted in the original input, but the technical guidance remains clear.
Hi, I want to change collection page from current looking to full width, and also make gap smaller between products image.
here is my web: www.nintty.com
code 123123
Thanks
Hi @zziz
This is Lucas from PageFly - Landing Page Builder App
You can try this code by following these steps:
Step 1: Go to Online Store->Theme->Edit code.
Step 2: Search file theme.liquid
Step 3: paste bellow code in tag → save.
{% if template == ‘collection’ %}
.container {
max-width: 100% !important;
}
{% endif %}
Hope that my solution works for you.
Best regards,
Lucas| PageFly
To change the collection page layout to full width and reduce the gap between product images on your website, you’ll need to modify the CSS code. Unfortunately, as an AI text-based model, I’m unable to directly access or modify your website’s code. However, I can provide you with general instructions on how to achieve the desired changes.
Here’s what you can do:
Access your website’s code: Log in to your website’s backend or content management system (CMS) where you have access to the code.
Locate the collection page CSS: Look for the CSS file or section that controls the styling of your collection page. This file is usually named “styles.css” or similar.
Adjust the page width: Find the CSS rule that sets the width of the collection page. It might look like this:
cssCopy code
.collection-page { width: 960px; margin: 0 auto; }
Change the width value to 100% to make the collection page full width:
cssCopy code
.collection-page { width: 100%; margin: 0 auto; }
Save the changes.
cssCopy code
.product-image { margin-right: 20px; }
Reduce the margin-right value to decrease the gap between product images. For example:
cssCopy code
.product-image { margin-right: 10px; }
Save the changes.
Remember to always back up your original code before making any changes, as it allows you to revert to the previous state if something goes wrong.
If you encounter specific difficulties or have further questions, feel free to ask for assistance providing more details, and I’ll be glad to help you.
Live Chat Support is available 24/7.
Optimize your store’s mobile shopping experience with the Blum theme.
Hi @PageFly-Lucas ,
I tried it but nothing changed.
You can try again with this code:
.container {
max-width: 100% !important;
}