# Mega Menu - Linking the main button

**URL:** <https://forum.wixstudio.com/t/mega-menu-linking-the-main-button/55853>\
**Category:** Ask the community\
**Tags:** design, question\
**Created:** [January 29, 2024, 8:21pm UTC](https://forum.wixstudio.com/t/mega-menu-linking-the-main-button/55853 "2024-01-29T20:21:18Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![user990](https://avatars.discourse-cdn.com/v4/letter/u/47e85d/32.png) [@user990](https://forum.wixstudio.com/u/user990)\
**Post date:** [January 29, 2024, 8:21pm UTC](https://forum.wixstudio.com/t/mega-menu-linking-the-main-button/55853/1 "2024-01-29T20:21:18Z")

</div>

Can you link the main button on the Mega menu? I only see that you can hover over it and it shows the mega menu, but I’d also like for people to be able to just click on the main mega menu item to go to a page.

---

<div class="post-metadata">

**Author:** ![user1712](https://avatars.discourse-cdn.com/v4/letter/u/b4bc9f/32.png) [@user1712](https://forum.wixstudio.com/u/user1712)\
**Post date:** [March 8, 2024, 11:35am UTC](https://forum.wixstudio.com/t/mega-menu-linking-the-main-button/55853/2 "2024-03-08T11:35:04Z")

</div>

I’m having the same issue and cannot find a solution to this.

---

<div class="post-metadata">

**Author:** ![user1876](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/user1876/32/90123_2.png) [@user1876](https://forum.wixstudio.com/u/user1876)\
**Post date:** [July 17, 2024, 7:21pm UTC](https://forum.wixstudio.com/t/mega-menu-linking-the-main-button/55853/3 "2024-07-17T19:21:01Z")

</div>

Same issue, did anyone get a solution?

---

<div class="post-metadata">

**Author:** ![noahlovell](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/noahlovell/32/118920_2.png) [@noahlovell](https://forum.wixstudio.com/u/noahlovell)\
**Post date:** [July 22, 2024, 9:39am UTC](https://forum.wixstudio.com/t/mega-menu-linking-the-main-button/55853/4 "2024-07-22T09:39:13Z")

</div>

Hey!

It’s not currently possible out of the box, but with a little bit of Velo, you can achieve the desired outcome 💪

Here’s the foundation of the code:

```javascript
$w("#horizontalMenu1").onItemClick((event) => {
    let label = event.item.label
    if(label === "Mega Menu") {
        //action
    }
})

```

And a quick video to show how to get it setup.

* * *

And finally, here’s a short summary of what’s happening in the video:

- The code is run in the `masterpage.js` file (which means it runs on all pages)
- When a menu item is clicked, it will get it’s label. If the label matches one of the conditions, it will run that condition.
- What we’re doing in the video is this:
  - If the label clicked is “Mega Menu”, then use `wixLocationFrontend` to move to the page that has a slug of “/mega-menu”
  - If the label clicked is “Services”, then use `wixLocationFrontend` to move to the page that has a slug of “/services”

(Worth noting that the conditions are case sensitive - so if the menu label is “Mega Menu”, it should be that in the code. Not “mega menu”, “Mega menu” etc.)

Hope this helps - and I’ve also shared this feedback with the team 🙂

---

<div class="post-metadata">

**Author:** ![kmartindesign](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/kmartindesign/32/104271_2.png) [@kmartindesign](https://forum.wixstudio.com/u/kmartindesign)\
**Post date:** [March 12, 2025, 5:31pm UTC](https://forum.wixstudio.com/t/mega-menu-linking-the-main-button/55853/5 "2025-03-12T17:31:15Z")

</div>

Hi Noah do we have an ETA when this will be available without no code?

---

<div class="post-metadata">

**Author:** ![noahlovell](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/noahlovell/32/118920_2.png) [@noahlovell](https://forum.wixstudio.com/u/noahlovell)\
**Post date:** [March 12, 2025, 5:47pm UTC](https://forum.wixstudio.com/t/mega-menu-linking-the-main-button/55853/6 "2025-03-12T17:47:24Z")

</div>

Should be available now with the New Menus in Studio 🙌

---

<div class="post-metadata">

**Author:** ![kmartindesign](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/kmartindesign/32/104271_2.png) [@kmartindesign](https://forum.wixstudio.com/u/kmartindesign)\
**Post date:** [March 12, 2025, 6:40pm UTC](https://forum.wixstudio.com/t/mega-menu-linking-the-main-button/55853/7 "2025-03-12T18:40:36Z")

</div>

So excited for this!

---

<div class="post-metadata">

**Author:** ![Dylan\_Kwong](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/dylan_kwong/32/106625_2.png) [@Dylan\_Kwong](https://forum.wixstudio.com/u/Dylan_Kwong)\
**Post date:** [March 22, 2025, 7:22am UTC](https://forum.wixstudio.com/t/mega-menu-linking-the-main-button/55853/8 "2025-03-22T07:22:17Z")

</div>

Hello! We’ve been using studio for quite awhile, we realised that in the latest version of studio , we cannot find the option to add a mega menu, can we have some pointers on this! Thanks!

---

<div class="post-metadata">

**Author:** ![noahlovell](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/noahlovell/32/118920_2.png) [@noahlovell](https://forum.wixstudio.com/u/noahlovell)\
**Post date:** [March 25, 2025, 11:04am UTC](https://forum.wixstudio.com/t/mega-menu-linking-the-main-button/55853/9 "2025-03-25T11:04:44Z")

</div>

With the new unified menu, the dropdown and mega menu functionality was combined. When you create a dropdown, you have the option to edit it as you did with the mega menu in the old menus 🙂

This article should help - [Studio Editor: Managing Dropdowns in a Menu | Help Center | Wix.com](https://support.wix.com/en/article/studio-editor-managing-dropdowns-in-a-menu)
