Help me to append html code on Hamburger Section

I think you need to learn about handlebars connectors and api.onPageChange

<script type="text/x-handlebars" data-template-name="/connectors/abc/xyz">
    {{mount-widget widget = "xyz"}}
</script>
api.onPageChange ((url, title) => {
});

The easy way is to look through a topic template.

decorateWidget

https://github.com/hnb-ku/discourse-custom-hamburger-links/blob/master/common/header.html

6 Likes