I was hoping you could help me figure out this menu customization on the Dawn Theme. I am working on AbbotCoffee.co password: showmp
I am trying to get my menu to be transparent and overlay the top of my image banner. Keeping the announcement section where it is. The menu will effectively look like it’s apart of the image banner.
I’d like it to be a sticky header on scroll up. When you scroll up, I’d like the menu background to be white instead of transparent. How would I go about doing that?
To make the menu background white on scroll up, you’ll need to add some JavaScript code. In the same header.liquid file or in a separate JavaScript file, add the following code:
Hi! This solution worked in my case where I only wanted the header background transparent.
However, my problem now is that on the mobile version when I expand the burger menu it just shows a grey semi-transparent layer with no menu links. I’d like this to be black text on white background as is for the cart and search (which btw work fine on mobile)
Inspecting it in the browser gives me this error:
global.js?v=74155653828737587811695285674:506 Uncaught TypeError: Cannot read properties of null (reading ‘classList’)
at HTMLElement.openMenuDrawer (global.js?v=74155653828737587811695285674:506:59)
at HTMLElement.onSummaryClick (global.js?v=74155653828737587811695285674:407:67)