# Hoe toon ik een widget in het hamburger menu?

**URL:** https://meta.discourse.org/t/how-to-display-a-widget-in-the-hamburger-menu/167022
**Category:** Support
**Created:** [12 oktober 2020 om 21:02 UTC](https://meta.discourse.org/t/how-to-display-a-widget-in-the-hamburger-menu/167022 "2020-10-12T21:02:38Z")
**Posts on this page:** 1
**Showing post:** 7

<div class="post-metadata">

### Author: ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)
#### Post date: [13 oktober 2020 om 19:03 UTC](https://meta.discourse.org/t/how-to-display-a-widget-in-the-hamburger-menu/167022/7 "2020-10-13T19:03:15Z")

</div>

> [@jordan.vidrine](#):
>
> Are you using the admin custom menu to add this?

Yes, I do.

> [@jordan.vidrine](#):
>
> Also, can you try adding `console.log(showModal)` inside of the `html() { }` area and see what is logged in your console?

Yes, it shows some normal stuff I guess (when I trigger the modal):  
`(e,t){t=t||{};var n=(0,c.getOwner)(this),s=n.lookup("route:application"),a=s.controllerFor("modal");a.set("modalClass",t.modalClass||"".concat((0,u.dasherize)(e).toLowerCase(),"-modal"));var i=t.admi…`

But unless I’m misunderstanding something, my issue isn’t the modal interaction (which works), but placing my widget in the hamburger menu.

I followed this [modal creation tutorial](https://meta.discourse.org/t/render-modal-from-theme-client-side-plugin-api/94305/10) and it works perfectly, the custom button shows the modal.

 ![image](https://global.discourse-cdn.com/meta/original/3X/a/4/a4d8961dc2dd89f2840b62af5c41438719ce5ec8.png)  
 ![image](https://global.discourse-cdn.com/meta/original/3X/7/9/795b00c9725f8983fead9a842367735a6a511427.png)  
The modal works.  
Adding the widget button in a template works and triggers the modal.  
Adding a **regular link** in the hamburger menu works.  
…But adding the **widget button** in the hamburger doesn’t work and creates an empty link instead. Are there some restrictions of some kind when using decorateWidget with “hamburger-menu”? 🤔

---

_[View the full topic](https://meta.discourse.org/t/how-to-display-a-widget-in-the-hamburger-menu/167022)._
