Source: https://meta.discourse.org/t/adding-a-menu-item-to-the-hamburger-menu/24466

I needed to add a menu item to the hamburger :hamburger: menu in top right

I needed something that would be:

  • Accessible on desktop and mobile view
  • Opens in a new window / tab

This did the simple job for me.

###What code do I need?


###Where do I add it?
This goes in the CSS/HTML customisations in

###How does it work?
Simply put it uses Discourse’s plugin-outlet functionality (code found here).

This appends our handle bars template with the rest of the site-map-links templates (if any) and outputs at the site-map-links plugin-outlet point:
https://github.com/discourse/discourse/blob/350554e198084ee241143cc55891e80fd1c8c00a/app/assets/javascripts/discourse/templates/site-map.hbs#L25

###Tested with
Discourse 1.2.0.beta5 - version 4c0129ccddb9037467133d37e5a93520a5f86f77