Motion theme product page customization page width - urgent

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:

2 Likes

Hello @Sivadarshan ,

Here are the steps to apply the necessary changes in your Shopify store:

  1. In your Shopify Admin, navigate to Online Store > Themes > Actions > Edit Code.
  2. Locate Asset > base.css and paste the following code at the bottom of the file:
.page-width {
    max-width: 1300px !important;
}

Let me know if you need further assistance!

@Sivadarshan

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!

@ZestardTech Thanks for the code, but I Need to make like that only in product page

@vm-web Sorry the code is not working

Please add this code to Custom CSS in Online Store > Themes > Customize > Theme settings.

.template-product .page-width { max-width: 1300px !important; }

Hi @Sivadarshan ,

Here are the steps to apply the necessary changes in your Shopify store:

  1. In your Shopify Admin, navigate to Online Store > Themes > Actions > Edit Code.
  2. Locate theme. liquid and paste the following code at the bottom of the tag:
{% if template == 'product' %}

{% endif %}

Change the template name according to your product page template.

@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

1 Like

Please update the code.

.template-product .product-section .page-width { max-width: 1300px !important; }

@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;
}