We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

Code needed to create multi columns in nav menu.

Solved

Code needed to create multi columns in nav menu.

MattBailey
Tourist
10 0 3

Hello, I need to make my website's clickable 'brand' section into three columns. Currently, there are too many items, and the menu is complex to navigate on some browsers. I am happy to add code. Below is a screenshot of the menu I am referring to. Screenshot 2024-09-24 at 4.03.06 pm.pngThank you.

Accepted Solution (1)

Moeed
Shopify Partner
7764 2082 2568

This is an accepted solution.

Hey @MattBailey 

 

Follow these Steps:

1) Go to Online Store
2) Edit Code
3) Find theme.liquid file

4) Add the following code in the bottom of the file above </body> tag

<style>
@media screen and (min-width: 768px) {
ul#HeaderMenu-MenuList-1 {
    column-count: 4 !important;
    column-gap: 20px !important;
    width: auto !important;
    padding: 20px !important;
    min-width: 800px !important;
}
}
</style>

RESULT:

Moeed_0-1727160356711.png

 

If I managed to help you then, don't forget to Like it and Mark it as Solution!

 

Best Regards,
Moeed

- Need a Shopify Specialist? Chat on WhatsApp

- Get a quick Shopify quote – Click here!

- Custom Design | Advanced Coding | Store Modifications


View solution in original post

Replies 5 (5)

Moeed
Shopify Partner
7764 2082 2568

This is an accepted solution.

Hey @MattBailey 

 

Follow these Steps:

1) Go to Online Store
2) Edit Code
3) Find theme.liquid file

4) Add the following code in the bottom of the file above </body> tag

<style>
@media screen and (min-width: 768px) {
ul#HeaderMenu-MenuList-1 {
    column-count: 4 !important;
    column-gap: 20px !important;
    width: auto !important;
    padding: 20px !important;
    min-width: 800px !important;
}
}
</style>

RESULT:

Moeed_0-1727160356711.png

 

If I managed to help you then, don't forget to Like it and Mark it as Solution!

 

Best Regards,
Moeed

- Need a Shopify Specialist? Chat on WhatsApp

- Get a quick Shopify quote – Click here!

- Custom Design | Advanced Coding | Store Modifications


MattBailey
Tourist
10 0 3

Thank you, that was exactly what I needed.

Moeed
Shopify Partner
7764 2082 2568

Thank you for your reply. I'm glad to hear that the solution worked well for you. If you require any more help, please don't hesitate to reach out. If you find this information useful, a Like would be greatly appreciated.

- Need a Shopify Specialist? Chat on WhatsApp

- Get a quick Shopify quote – Click here!

- Custom Design | Advanced Coding | Store Modifications


Benjamen
Shopify Partner
139 8 16

Hello 👋

The below solutions will indeed help with the overwhelming amount of items in your mega menu. I was on your site just thinking that some collection images in your mega menu might be able to let your customers quickly identify your products. Something like Pinnacle or Horizon from Meteor Mega Menu would work well. Just throwing that out there. 
Cheers 😊

Benjamen, Marketing Specialist @ Helium
- Customer Fields ✪✪✪✪✪ (380 reviews)
- Meteor Mega Menu ✪✪✪✪✪ (307 reviews)
- Onboard B2B NEW!
- Strike Automatic Discounts NEW!
MattBailey
Tourist
10 0 3

Thanks, I hadn't thought of that. I'll be sure to have a look. Cheers