How can I change the width of the header to match my website? Any help is greatly appreciated! Website: flammashop.com
Topic summary
A user seeks help adjusting their header width to match their website layout.
Two solutions proposed:
-
ZenoPageBuilder’s approach: Add CSS code to the
base.cssfile targeting.header-wrapperwith properties for width (var(--page-width)) and margin (auto). A screenshot shows the expected result. -
YOD_Solutions’ method: Modify the
base.cssfile in the assets folder by changing themax-widthproperty of.page-width.drawer-menufrom100%tovar(--page-width).
Both solutions involve editing theme code files and using CSS variables to control header dimensions. The discussion remains open with no confirmation from the original poster about which solution worked or if the issue is resolved.
Hello @flammagreg ![]()
In Shopify Admin, you can go to Edit theme code, open file base.css, and add this code at the bottom
.header-wrapper {
max-width: var(--page-width);
margin: auto;
}
The result
Hope that helps.
Go to “base.css” file in the “assets” folder and change the max-width property of “.page-width.drawer-menu” from “100%” to “var(–page-width)”
.page-width.drawer-menu {
max-width: var(--page-width);
}

