A user implemented custom code to make a hero image overlap with the header on their Shopify store. While this worked as intended on desktop, it created an unwanted issue on mobile: the hero image now appears in the background when the mobile menu is opened.
Desired outcome:
Only the logo should be visible in the mobile menu header
Background should match the rest of the option menu
Solution provided:
A CSS fix was offered involving three steps:
Navigate to Admin → Online Store → Theme → Edit code
Locate the base.css file and add specific CSS code at the end
The code targets the mobile header center element when the menu is open, setting position: initial !important
Status: The original poster confirmed the solution worked and thanked the responder. The issue appears resolved.
Summarized with AI on November 5.
AI used: claude-sonnet-4-5-20250929.
I added some code to make my hero image overlap with the header, and it worked, just what I wanted. But now on mobile view the hero image can be seen in the header area when the option menu is opened which I dont want. I just want my logo to show and have the same background as the rest of the option menu. Any and all help is appreciated, thank you!