Shopify themes, liquid, logos, and UX
Hi there! Does anyone know how to make the "product information" and the "related products" sections in the product pages full widht? Any chance we can add a css code like the below just for these on desktop? I don't want to change the widht of the whole page as it'll mess up the header and other sections.
Please help! Thank you very much!
Solved! Go to the solution
This is an accepted solution.
Sure. Replace the code above with the new code
{% if template == 'product' or template == 'collection' %}
<style>
@media screen and (min-width: 1024px) {
.page-width {
max-width: 100% !important;
}
}
</style>
{% endif %}
Hi, @GASTY
Please share the store URL so that I can assist you.
Hi @AnneLuo , link for this is: https://gastonduflos.com/products/print-1 and any other product in the shop
You can try this code by following these steps:
Step 1: Go to the online store ->Theme ->Edit Code.
Step 2: Find the theme.liquid file and add the following code above the </head> tag
<style>
@media screen and (min-width: 1024px) {
.page-width {
max-width: 100% !important;
}
}
</style>
Hopefully it will help you. If yes then Please don't forget hit Like and Mark it as solution!
Thank you @AnneLuo this code worked well but it's targetting all the pages acros my website. I do not want to affect the widht of pages like my about, contact and other blog pages. Thats why I only wanted to target the product and collection pages. Any chance we can achieve this ?
This is an accepted solution.
Sure. Replace the code above with the new code
{% if template == 'product' or template == 'collection' %}
<style>
@media screen and (min-width: 1024px) {
.page-width {
max-width: 100% !important;
}
}
</style>
{% endif %}
Thank you @AnneLuo Ill mark your answer as solution, but unfortunately won't work as I expected as for some reason the images are showing pixelated even when their resolution is way bigger than the actual section.
Also, the templates for the product pages are as below, any chance you could edit the code so it works on all of them for future reference? Ill see why the images are looking pixelated first.
Can you describe your expection?
Thank you @AnneLuo . I achieved it for the collection page with the below code, any chance we can use the same css for the product information/photo and related products containers?:
#ProductGridContainer .collection.page-width {
max-width: none!important;
width: 100%;
}
Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025