Good Day,
i have sample submenu, and its being full page but i want to be just below of parent menu, how can i fix it
Issue: A Shopify submenu (mega menu) displays full-width across the page; the goal is to have a compact dropdown positioned directly under its parent menu and remove the full-page white background.
Key steps and suggestions:
Current status:
Good Day,
i have sample submenu, and its being full page but i want to be just below of parent menu, how can i fix it
Set your submenu CSS to sit under the parent instead of full-width:
.site-nav--has-dropdown { position: relative; }
.site-nav--dropdown { width: auto; left: 0; }
@AlexRatii can you please share the website link? so I can provide the css
pickandmix.ae
pass: aaa12345
@suyash1 please check
@AlexRatii please add this css to the very end of your styles.css file and check
shopify admin->online store->themes->edit theme code->assets->styles.css
.menu-list__submenu{left: initial;}
.menu-list__submenu .mega-menu.section {display: block;}
@suyash1
thank you for your comment i haven’t find styles.css and do same in base.css
the result is :
and also i prefer to eliminate the fullpage white background for submenu, something like this just under menu text not full page:
need to add !important to the css, so please remove previous css and add this
.menu-list__submenu{left: initial !important;}
.menu-list__submenu .mega-menu.section {display: block !important;}
@suyash1 its work perfectly , thank you
how can i remove white background ? just have background below of text