# Is there a problem with the menu APIs when using mobile?

**URL:** <https://forum.wixstudio.com/t/is-there-a-problem-with-the-menu-apis-when-using-mobile/61676>\
**Category:** Ask the community\
**Tags:** code, question\
**Created:** [August 6, 2024, 2:21pm UTC](https://forum.wixstudio.com/t/is-there-a-problem-with-the-menu-apis-when-using-mobile/61676 "2024-08-06T14:21:05Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![dthompson55](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/dthompson55/32/36719_2.png) [@dthompson55](https://forum.wixstudio.com/u/dthompson55)\
**Post date:** [August 6, 2024, 2:21pm UTC](https://forum.wixstudio.com/t/is-there-a-problem-with-the-menu-apis-when-using-mobile/61676/1 "2024-08-06T14:21:05Z")

</div>

**Question:**  
Is there a problem with the menu APIs when using mobile? MenuItems are undefined.

**Product:**  
Velo APIs

**What are you trying to achieve:**  
Trying to access mobile menu items.

**What have you already tried:**  
This code snippet shows menuItems are undefined for ‘#mobileMenu1’. ‘#mobileMenu1’ is defined, and I’m accessing the site with a mobile device.

```javascript
$w.onReady(function () {
   console.log( $w('#mobileMenu1').menuItems )
});

```

**Additional information:**  
I asked this question earlier, but with less well defined wording. This should be easy to replicate. Go to dev mode. Add the above velo code. Change to mobile view. Run the code. I believe #mobileMenu1 is the default name of the mobile menu, but it might be different for you.

[https://dev.wix.com/docs/velo/api-reference/$w/menu/menu-items](https://dev.wix.com/docs/velo/api-reference/$w/menu/menu-items)

---

<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:** [August 6, 2024, 2:34pm UTC](https://forum.wixstudio.com/t/is-there-a-problem-with-the-menu-apis-when-using-mobile/61676/2 "2024-08-06T14:34:29Z")

</div>

Seems to be working for me.

Is this the Wix editor or Studio editor? Got a screenshot of the element in the editor and/or the error?

---

<div class="post-metadata">

**Author:** ![dthompson55](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/dthompson55/32/36719_2.png) [@dthompson55](https://forum.wixstudio.com/u/dthompson55)\
**Post date:** [August 6, 2024, 2:41pm UTC](https://forum.wixstudio.com/t/is-there-a-problem-with-the-menu-apis-when-using-mobile/61676/3 "2024-08-06T14:41:55Z")

</div>

Thanks, I got it working by upgrading to the newer mobile menus.

IDK about the differences between the editors. This one says WIX STUDIO in the upper left. I think it’s the only one I’ve ever used.

---

<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:** [August 6, 2024, 3:19pm UTC](https://forum.wixstudio.com/t/is-there-a-problem-with-the-menu-apis-when-using-mobile/61676/4 "2024-08-06T15:19:11Z")

</div>

Amazing - glad to hear it’s working 🙂

When in the editor itself, if you see a square with a circle in it (Studio logo) it’ll be the Studio editor (it also has a dark bar at the top). If it’s a light coloured bar, and has the word “Wix” in the top corner, it’ll be the Wix Editor 🙂

---

<div class="post-metadata">

**Author:** ![dthompson55](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/dthompson55/32/36719_2.png) [@dthompson55](https://forum.wixstudio.com/u/dthompson55)\
**Post date:** [August 6, 2024, 11:31pm UTC](https://forum.wixstudio.com/t/is-there-a-problem-with-the-menu-apis-when-using-mobile/61676/5 "2024-08-06T23:31:52Z")

</div>

I’m guessing it’s the WIX editor then? Should I care? It works for me as-is.

 ![image](https://us1.discourse-cdn.com/wix/original/3X/0/7/07f117a171202ac279f18c6ea50860aa3418fad7.png)

---

<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:** [August 7, 2024, 12:33pm UTC](https://forum.wixstudio.com/t/is-there-a-problem-with-the-menu-apis-when-using-mobile/61676/6 "2024-08-07T12:33:29Z")

</div>

Nah, you should be good either way - as long as it’s working, that’s the main thing 🙂

Sometimes knowing which editor is being used is helpful, since there are some differences here and there

---

<div class="post-metadata">

**Author:** ![dthompson55](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/dthompson55/32/36719_2.png) [@dthompson55](https://forum.wixstudio.com/u/dthompson55)\
**Post date:** [August 7, 2024, 4:13pm UTC](https://forum.wixstudio.com/t/is-there-a-problem-with-the-menu-apis-when-using-mobile/61676/7 "2024-08-07T16:13:55Z")

</div>

You’re the best! Your working knowledge of this platform and the help you provide is remarkable.
