in this site i want drop menu to be a list not a very wide column
Topic summary
A user seeks to convert their website’s wide column dropdown menu into a list-style format.
Solution Provided:
- Navigate to: Admin → Online Store → Themes → Edit Code
- Open the
theme.scssfile in the Assets folder - Add custom CSS code at the end of the file
CSS Modifications:
The code targets .site-nav__dropdown.megamenu and related grid elements to:
- Adjust width properties to
max-content - Set display to
flex - Modify positioning to
relative
Outcome:
The solution was successfully implemented and confirmed working by the original poster.
1 Like
Hi @abdo10
You can follow the instructions to achieve the result below.
- From you Admin page, go to Online store > Themes > Click the three dots on the theme you want to edit > Edit code
- Go to Asset folder and open the thtme.scss file
- At very end of the code, add the code below
.site-nav__dropdown.megamenu.text-left {
min-width: max-content;
}
li.site-nav__item.site-nav__expanded-item.site-nav--has-dropdown.site-nav--is-megamenu {
position: relative;
}
.grid.grid--center {
display: flex;
}
.grid.grid--center > * {
width: max-content;
}
Result:
1 Like
thanks a lot
it works
