Shopify themes, liquid, logos, and UX
For my Motion theme website, I'd like to customize the product page to add extra padding to the product image and its contents, but only for desktop view. I've attached a reference image showing the desired design.
website: https://www.taramajeans.com/
Reference Image:
Now it is like this:
Solved! Go to the solution
This is an accepted solution.
Please update the code.
.template-product .product-section .page-width { max-width: 1300px !important; }
- Helpful? Like & Accept solution! - Support me? Buy me a coffee
- Ryviu - Product Reviews & QA app: Collect customer reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Dhgate and CSV.
- Reton: Loyalty & Rewards - Earn points through tasks, redeem for discounts, and enjoy exclusive VIP rewards!
- Lookfy Gallery: Lookbook Image - Gain customers with photo gallery, video & shoppable image
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- En...Sign up now.
Hello @Sivadarshan ,
Here are the steps to apply the necessary changes in your Shopify store:
.page-width {
max-width: 1300px !important;
}
Let me know if you need further assistance!
@ZestardTech Thanks for the code, but I Need to make like that only in product page
Hi @Sivadarshan ,
Here are the steps to apply the necessary changes in your Shopify store:
{% if template == 'product' %}
<style>
.page-width {
max-width: 1300px !important;
}
</style>
{% endif %}
Change the template name according to your product page template.
@ZestardTech I've used this but the entire page is going to 1300px including header, review section, footer and recently bought section, But I want to customize only the product image and product content.
You can Add below given code inside the style tag in above given solution, It will work for sure.
.product-section .page-width {
max-width: 1300px !important;
}
Please add the following code to your assets/theme.css file at the bottom of the file.
.template-product .page-width {
width: 100% !important;
max-width: 1300px !important;
padding: 0 20px;
}
Thanks!
Please add this code to Custom CSS in Online Store > Themes > Customize > Theme settings.
.template-product .page-width { max-width: 1300px !important; }
- Helpful? Like & Accept solution! - Support me? Buy me a coffee
- Ryviu - Product Reviews & QA app: Collect customer reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Dhgate and CSV.
- Reton: Loyalty & Rewards - Earn points through tasks, redeem for discounts, and enjoy exclusive VIP rewards!
- Lookfy Gallery: Lookbook Image - Gain customers with photo gallery, video & shoppable image
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- En...Sign up now.
@Dan-From-Ryviu It's working but the entire page like header, reviews, recently bought together etc... is gone to 1300px, but I want only the product image and content to 1300px
This is an accepted solution.
Please update the code.
.template-product .product-section .page-width { max-width: 1300px !important; }
- Helpful? Like & Accept solution! - Support me? Buy me a coffee
- Ryviu - Product Reviews & QA app: Collect customer reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Dhgate and CSV.
- Reton: Loyalty & Rewards - Earn points through tasks, redeem for discounts, and enjoy exclusive VIP rewards!
- Lookfy Gallery: Lookbook Image - Gain customers with photo gallery, video & shoppable image
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- En...Sign up now.
Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025