In a Dev category discussion titled ‘Add button to top navigation bar’, user kgish seeks a method to append a custom button to the top navigation and remove the ‘New Topic’ button, asking whether to use Plugin.rb or JavaScript. User cpradio suggests hiding the button via CSS and adding navigation links through the ‘Customize JavaScript’ section, providing a link to a relevant example post. kgish responds that CSS was ineffective and shares a JavaScript solution they found, which extends Discourse.NavItem to inject a new ‘posted’ button into the navigation list. cpradio clarifies that while CSS should work for hiding the button, JavaScript is indeed required for adding new links, validating kgish’s approach.
You could hide the New Topic button via CSS and to add navigation you can do that in the Customize JavaScript sections. See the below post as an example (there are others in that topic too)
It should for hiding the New Topic button, but for adding links, you are correct, it won’t which is why I linked to that topic (to show you how to add buttons)