Shopify themes, liquid, logos, and UX
I used this code that worked for the images but also took the padding off the header and footer.
I am looking at something like this:
https://uk.stussy.com/collections/new-arrivals/products/115746-beach-shell-wrinkled-nylon-black
{%- if template.name == 'product' -%} <style> .page-width { padding-left: 0px !important; } </style> {%- endif -%}
Thanks in advance!
To apply the padding change only to the images on your product page without affecting the header and footer, you can target the specific element containing the images. Here's a refined approach:
{%- if template.name == 'product' -%}
<style>
.product-images-container {
padding-left: 0px !important;
padding-right: 0px !important;
}
</style>
{%- endif -%}
Make sure to replace .product-images-container with the actual class or ID of the element containing your product images if it's different. This way, only the images will have the padding removed, leaving the header and footer untouched.
If this fixed your issue, likes and accepting as a solution are highly appreciated
| Build an online presence with our custom-built Shopify Theme: EcomifyTheme
| Check out our reviews: Trustpilot Reviews
| We are Shopify Partners: EcomGraduates Shopify Partner
Hi, thank you for your help!
I can't tell the class or ID of the container. I used .product__media-list , product__media-wrapper and page-width. None of them worked. I can't tell the name of the container.
https://95b2e2-2d.myshopify.com/products/san-francisco-1-copy-copy-copy
The theme is Dawn.
Discover how to increase customer engagement on your store with articles from Shopify A...
By Jacqui Apr 23, 2025Hey Community 👋 Did you know that March 15th is National Everything You Think Is W...
By JasonH Apr 1, 2025Discover how to increase the efficiency of commerce operations with Shopify Academy's l...
By Jacqui Mar 26, 2025