Hello,
I want to make full background only on nav bar,
but It not cover the full width,
![]()
left and right space also cover with same color
https://1iumgu89tzn68o14-58506346583.shopifypreview.com
best,
Sohan
A user is experiencing an issue where their navigation bar’s background color doesn’t extend to the full width of the page, leaving uncovered space on the left and right sides.
Proposed Solutions:
Multiple respondents provided CSS-based fixes with similar approaches:
theme.liquid file (either above </head> or before </body>)max-width: 100% !importantmargin: unset !importantThe solutions aim to override the theme’s default width constraints on the header/navigation element.
Note: The actual CSS code snippets in the responses appear corrupted or reversed in the original text, but the general approach involves modifying the theme’s liquid file with custom styling to force full-width coverage.
Hello,
I want to make full background only on nav bar,
but It not cover the full width,
![]()
left and right space also cover with same color
https://1iumgu89tzn68o14-58506346583.shopifypreview.com
best,
Sohan
Hey @Sohan2198
Follow these Steps:
Go to Online Store
Edit Code
Find theme.liquid file
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
Hello @Sohan2198
You can add code by following these steps
Go to Online Store → Theme → Edit code.
Open your theme.liquid file
Paste the below code before on theme.liquid
Was my reply helpful? Click Like to let me know!
Was your question answered? Mark it as an Accepted Solution.
This is Theodore from PageFly - Shopify Page Builder App
Please add this code to your theme.liquid above the to get this solved
Step 1: Online Stores > Themes > More Actions > Edit code
Step 2: click on theme.liquid and paste the code above the
Hope this can help you solve the issue
Best regards,
Theodore | PageFly