Hello everyone! I am currently in the process of customizing Shopify’s Dawn theme and am seeking assistance with redesigning my menu drawer. The default menu drawer does not cover the header when it opens, and I would like to change this. Specifically, I would like the header to be covered when the drawer is opened, similar to how my cart drawer works.
Go to “Sections” file → locate the HTML element that contains the header content. This is usually a div element with a class name of header.
Add a new class to the header div element. For example, you can name the new class header–fixed to indicate that the header is fixed in position. Your code should look something like this:
Go to "Templates’ file → locate the file that contains the drawer menu code. This could be in the drawer.liquid file or cart-drawer.liquid
In the drawer menu file, locate the HTML element that contains the drawer menu content. This is usually a div element with a class name of drawer.
Add a new CSS class to the drawer div element. For example, you can name the new class drawer–fixed to indicate that the drawer is fixed in position. Your code should look something like this:
Add the following CSS code to your theme’s stylesheet:
.drawer--fixed {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: 1000; /* or higher than the header's z-index */
overflow: auto;
}
.header--fixed {
z-index: 999; /* lower than the drawer's z-index */
}
Hello micheal is myzee archive website your website ? if you have this website can you send me your theme esspecially zip file ı have to solution this problem if you help me ı will very happy thank you so much have a good day :))