This is a theme component that will allow you to add links to Discourse top navigation.


Repository link:

https://github.com/discourse/Discourse-nav-links-component

Preview

https://theme-creator.discourse.org/theme/Johani/custom-nav-links


Samples:

Desktop

Capture: 690x169

Mobile

Capture: 259x500,85%


Settings:

A navigation link needs three things

  • Name
  • Description
  • Path or URL

Name is the text for the link that shows up on the menu. Description shows up when you hover the name like this:

hover2: 690x205

Path/URL is where you want the link to go.

You can add links as semicolon delimited values in theme settings following this order

name;description;URL

URL can also be relative like

/c/staff

/t/232

/groups/plugin_authors

/about

/tags/theme-component


How do I install this theme?

follow the official theme installation guide here:

https://meta.discourse.org/t/how-do-i-install-a-theme-or-theme-component/63682

Then add the component to your theme as a theme component and you’re all set!