Big margin to the right of the page (Solved)

Topic summary

A user encountered a large right margin issue on their store page.

ThePrimeWeb provided a CSS fix to add to the theme.liquid file:

  • Insert custom CSS below the <head> tag targeting .header with overflow-x: clip !important

This resolved the margin but created secondary issues:

  • Two footer menus were overflowing/splitting across columns
  • Language selector became unclickable

Attempted fixes using max-width and display: grid properties either restored the margin or cut off the header on the right side.

Resolution: ThePrimeWeb suggested the user contact their paid theme’s official support, noting that previous modifications may have broken theme functionality. The original poster thanked them for the assistance and agreed to reach out to theme support.

Summarized with AI on November 11. AI used: claude-sonnet-4-5-20250929.

I have this page im working on and the margin to the right of the page there is this big margin after the page ends

Hey @Miguel3403 ,

Go to your theme’s “Edit Code” Option, then in the search bar type “theme.liquid”
Below the tag “” tag paste the following. Screenshot attached for reference.

@media only screen and (min-width: 960px) {
    header.header {
        overflow-x: clip !important;
    }    
}

Screenshot is for reference only, the correct code to paste is the one shown above.

thanks and these last two menus overflowing how can i fix that?

I don’t know why it’s split into the next column after 3 items. Normally when you do this to the last menu, this will happen anyway.

Only way to fix it is to make it all appear on one column

Instructions are the same.


Also given that this is a paid, theme you should reach out to the theme support.

This line of code seems to be causing me to be unable to select the last language without it i can select the last language but the margin comesback

header.header {
overflow-x: clip !important;
}

You try replacing it with this

div#portuguese-wines-menu-8 ul, div#gourmet-menu-7 ul {
    display: grid !important;
    max-width: max-content !important;
}

With the first line you can select the language but the the margin comesback with the second line the margin goes away but the header gets cut in the right side

I don’t know man, you can request your theme’s support since you have paid for the theme. You’ve definitely done something before to break the theme, I can’t find it out.

Thanks will try support thanks for the help anyways you really helped me out today