How to make my product pages full width

Topic summary

A Shopify store owner is trying to remove white spaces on the sides of their product pages to achieve a full-width layout.

Problem: The product pages at www.audette.store display unwanted white margins on both sides instead of extending edge-to-edge.

Proposed Solutions:

Three community members offered CSS-based fixes:

  • Solution 1: Add custom CSS via <style> tags in the theme.liquid file above the </body> tag
  • Solution 2: Modify base.css by adding .page-width.section--padding { margin: unset !important; }
  • Solution 3: Target the same class with max-width: 100% !important; in the theme’s CSS file

Current Status: The issue remains unresolved. The original poster tested multiple solutions but reports that white spaces persist on their product pages. Screenshots were provided showing both the initial problem and the lack of improvement after attempting the fixes.

The discussion is ongoing with no successful resolution yet.

Summarized with AI on October 30. AI used: claude-sonnet-4-5-20250929.

as you can see there are white spaces at the side, how to make it full width?

2 Likes

my store is www.audette.store

1 Like

Hey @withaudette

Follow these Steps:

  1. Go to Online Store

  2. Edit Code

  3. Find theme.liquid file

  4. Add the following code in the bottom of the file above tag


RESULT:

If I managed to help you then, don’t forget to Like it and Mark it as Solution!

Best Regards,
Moeed

Go to online store ----> themes ----> actions ----> edit code ----> base.css
add this code at the end of the file and save.

.page-width.section--padding {
margin: unset !important;
}

result

If this was helpful, hit the like button and accept the solution.
Thanks

hi it doesn’t work

hi it doesn’t work,

Hi @withaudette

TRy this one.

  1. From your Shopify admin dashboard, click on “Online Store” and then “Themes”.
  2. Find the theme that you want to edit and click on “Actions” and then “Edit code”.
  3. In the “Assets” folder, click on “base.css, style.css or theme.css” file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:
section.page-width.section--padding {
    max-width: 100% !important;
}

Please don’t forget to Like and Mark Solution to the post that helped you. Thanks!

Hi it doesnt work, i still see the white spaces