A user wants to reposition header menu items (cart, search, reward menu) from 1400px width to 1200px to align with their Replo page builder layout.
Solutions Provided:
Initial approach: Add custom CSS code above the </body> tag in theme.liquid file to adjust header width
Preferred solution: Add CSS to base.css/style.css/theme.css file targeting header elements with either:
Fixed width: max-width: 1200px;
Percentage-based: max-width: 70%;
Current Status:
The pixel-based solution works on desktop but doesn’t adjust on tablet/mobile devices. The helper recommends using percentage values instead of fixed pixels for responsive behavior across all screen sizes, allowing the header to scale proportionally on different devices.
Summarized with AI on November 18.
AI used: claude-sonnet-4-5-20250929.
How do I move the header items in the header?
The width is 1400px and I want the items to be moved into 1200px
I attached an image below - the X is approximately showing where I want the menu drawer, cart and search field to be moved to.
Can’t I manually decide how many px widths it should have?
Im building my website on Replos page builder, and are only using the header from Shopify, and therefore it would be nice to manually be able to change the width so it will match the rest
You like to move the header contents. I’ll give you the code, and you can play the width and change it whatever you like. Just be sure if you like to use the pixel add px; sime-colon on the last and not to delete any curly bracket.
From your Shopify admin dashboard, click on “Online Store” and then “Themes”.
Find the theme that you want to edit and click on “Actions” and then “Edit code”.
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:
Thank you, it worked on the PC!
However nothing is changed on the tablet or the mobile.
Can that be changed aswell, or should I just mark this as the solution?
If you put pixel it wont change in the tablet and mobile. When you used % percent it will change. Try it youll see the difference. I like to use more the percentage.