Multiple column dropdown menu that has dropdowns to product pages

I am trying to have multiple columns in a dropdown menu for collections. These collections in the dropdown menu would also have dropdowns themselves that link to the product page. This is for the 50 states (collections) that dropdown to show the cities within (product pages). When I entered the code below on component-list-menu.css, the dropdown menu has multiple columns, but the cities are blurring together and going off the dropdown screen as shown in the highlight section of attached screenshot.

@media only screen and (min-width: 750px){
.header__submenu.list-menu{
width: 60rem !important;
}
.header__submenu.list-menu li {
width: calc(100%/3);
display: inline-block;
}

Hi @804design ,

Please send your site and if your site is password protected, please send me the password. I will check it.

@LitExtension The site is lifemappedshop.com and password is ‘sheost’.

Hi @804design ,

Go to Assets > base.css and paste this at the bottom of the file:

.header__submenu .header__submenu {
    background-color: #F8F8F8 !important;
}

Hope it helps!

@LitExtension I copied that code to base.css and looks like the dropdown menu made a slight improvement, but still not exactly what I am hoping for. Is there addition code I could add so that the other states in their dropdown row will remain in place when a state from that row is selected? Thanks for the help!

Hi @804design ,

Can you explain more about it? it’s not really clear for me to check

@LitExtension Sure, I attached 2 pictures to demonstrate what I’m hoping for. In this example, I selected Colorado from the Shop by Location menu to view the cities within the state. The first picture is how it is currently after I copied the code you provided above. California should not have been moved to the line below Colorado and Connecticut should not have disappeared. The second picture is a mockup of what I’m hoping for. California and Connecticut are shown in the correct places, and the cities within Colorado are positioned to fit the width of the dropdown menu from left to right. I hope this helps provide some clarity. Thanks!

Hi @804design ,

With the current code, this is not possible, you need to change a lot for it.

You can just display it like this:

Do you want to change it?

@LitExtension I understand. I knew it could be too much to ask for. I think that screenshot looks great. Could you please provide the code for that change? Thanks.

Hi @804design ,

Go to Assets > base.css and paste this at the bottom of the file:

.header__submenu .header__submenu {
    position: absolute !important;
    left: 0 !important;
    width: 100% !important;
}

If it helped you solve your issue, please mark it as a solution. Thank you and good luck.

@LitExtension Thanks for your help. I really like the way it looks now.

1 Like