# Convert the New Topic button to a have a sub menu

**URL:** <https://meta.discourse.org/t/convert-the-new-topic-button-to-a-have-a-sub-menu/212300>\
**Category:** Development\
**Created:** [December 16, 2021, 1:09pm UTC](https://meta.discourse.org/t/convert-the-new-topic-button-to-a-have-a-sub-menu/212300 "2021-12-16T13:09:13Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Fma965](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fma965/32/259795_2.png) [@Fma965](https://meta.discourse.org/u/Fma965)\
**Post date:** [December 16, 2021, 1:09pm UTC](https://meta.discourse.org/t/convert-the-new-topic-button-to-a-have-a-sub-menu/212300/1 "2021-12-16T13:09:14Z")

</div>

Hey guys,

Does any one know how i can go about making the New Topic button have a sub menu on certain categories?

Currently i have this

 ![image](https://global.discourse-cdn.com/meta/original/3X/8/b/8b3e7af6213316670dc5b8b6a0e783f6376f6679.png)

But was hoping to get something like this when the “New Topic” button is clicked

 ![image](https://global.discourse-cdn.com/meta/original/3X/d/a/da0f7d41d56e6d9830d7c5d7eb91cf7767935070.png)

I can think of a few ways to do this but not sure if i’m over thinking it, hiding the stock button and adding a whole new button with the dropdown was one of the ideas i had.

This is the current code i have, before i do it the way i said above, is there a way to just add a menu entry easily?

```html
<script type="text/x-handlebars" data-template-name="/connectors/before-create-topic-button/syncbutton"> 
  <button onclick="window.location.href='/w/issue-with-sync3'" class="btn-default btn btn-icon-text ember-view customnewtopicbtn" title="Create a new topic using the SYNC 3 Issue template">
    <svg class="fa d-icon d-icon-plus svg-icon svg-string" xmlns="http://www.w3.org/2000/svg"><use xlink:href="#plus"></use></svg>
    <span class="d-button-label">New Sync Issue</span>
  </button>
</script>

```

Also if i do hide the “Create Topic” button is there some variable or function i can use to retrive the link for the “New Topic” button?

EDIT: or rather how is the New Topic section opened, i thought it would be from clicking the button matching a ID or class but it seems this isn’t the case?

Thanks

---

_[View the full topic](https://meta.discourse.org/t/convert-the-new-topic-button-to-a-have-a-sub-menu/212300)._
