# Add custom menu panel to the correct location (same as hamburger menu panel)

**URL:** <https://meta.discourse.org/t/add-custom-menu-panel-to-the-correct-location-same-as-hamburger-menu-panel/119364>\
**Category:** Development\
**Created:** [3 ביוני,‏ 2019,‏ 9:47am UTC](https://meta.discourse.org/t/add-custom-menu-panel-to-the-correct-location-same-as-hamburger-menu-panel/119364 "2019-06-03T09:47:39Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![kleinfreund](https://avatars.discourse-cdn.com/v4/letter/k/a6a055/32.png) [@kleinfreund](https://meta.discourse.org/u/kleinfreund)\
**Post date:** [3 ביוני,‏ 2019,‏ 9:47am UTC](https://meta.discourse.org/t/add-custom-menu-panel-to-the-correct-location-same-as-hamburger-menu-panel/119364/1 "2019-06-03T09:47:39Z")

</div>

In [Reuse Discourse Hamburger Functionality - #5 by awesomerobot](https://meta.discourse.org/t/reuse-discourse-hamburger-functionality/85578/5), a way to add a new menu item to the `header-icons` location (i.e. where Discourse hamburger menu is located) is described.

In essence, a call to `api.decorateWidget('header-icons:after', callback)` is used to (1) add an additional menu entry with its own icon and (2) add a menu panel if its underlying state variable for its visibility is true.

This works, but is slightly inconsistent with the way Discourse’s existing menu entries work: The new menu is added as a child to the `header-icons` location (i.e. the `div.d-header-icons` element), while Discourse’s menus are children of `div.panel` (i.e. the parent element of `div.d-header-icons`).

This difference causes the added menu to be occluded by the `div.header-cloak` element for the mobile view.

Is there a way to add a widget to `div.panel`? Alternatively, is there a chance that the element `div.panel` will be available as a widget location?

---

_[View the full topic](https://meta.discourse.org/t/add-custom-menu-panel-to-the-correct-location-same-as-hamburger-menu-panel/119364)._
