I had to rebuild it as a purely CSS component as i had issues getting the admin section of the Javascript version stable, which means you have to edit the CSS selectors directly to make it work on your site.
The aim of the component is to help you highlight a path you specifically want users to take.
Link: https://github.com/focallocal/nav-buttons-highlighter
Here it is installed and highlighting the Kanban board plugin which most users on my platform would not know where to find after being members for months, especially those who mostly use mobile.
Desktop:
Mobile:
# Nav Buttons Highlighter
A Discourse theme component that highlights navigation buttons to guide users toward specific paths or functions you want them to follow, and makes the mobile dropdown menu more clear and visible.
Purpose
This component helps you:
- Guide users by highlighting important navigation links (e.g., your task board, documentation, or key categories)
- Improve mobile UX by making the dropdown navigation button stand out
- Create visual hierarchy in your navigation bar
Features
- Clean button styling with solid colors and hover effects
- Admin configurable - no CSS editing required
- Support for up to 3 custom navigation buttons
- Mobile-responsive - includes mobile dropdown button highlighting
- Pre-configured for Discourse Kanban plugin by default
- Color picker support for easy customization
Default Configuration
By default, this component is set up to highlight the Discourse Kanban plugin (link) in BLUE (#4285F4).
Installation
- In the Discourse Admin console, go to Customize ā Themes ā Components and click Install
- Copy from Git repository link and paste:
https://github.com/focallocal/nav-buttons-highlighter - Once installed, add the component to your active theme.
How to Customize
Admin Settings Panel
All configuration is done through simple admin settings - no CSS editing required!
To configure:
- Go to Admin ā Customize ā Themes
- Click on your active theme
- Find Nav Buttons Highlighter in the Included Components section
- Click Settings
Available Settings:
Button 1 - Kanban (Default):
- Highlight Kanban: Toggle on/off (default: on)
- Kanban Color: Color picker (default: blue #4285F4)
- Kanban Selector: CSS selector (default:
a.kanban-nav)
Button 2 - Custom:
- Highlight Button 2: Enable second button (default: off)
- Button 2 Color: Color picker (default: green #4CAF50)
- Button 2 Selector: Enter your CSS selector (e.g.,
a[href='/page'])
Button 3 - Custom:
- Highlight Button 3: Enable third button (default: off)
- Button 3 Color: Color picker (default: orange #FF5722)
- Button 3 Selector: Enter your CSS selector
Mobile:
- Highlight Mobile Dropdown: Toggle mobile Latest dropdown (default: on)
- Mobile Dropdown Color: Color picker (default: blue #4285F4)
Finding CSS Selectors:
To highlight different navigation links, you need their CSS selector:
- Open your forum in a browser
- Right-click the link you want to highlight
- Select āInspect Elementā
- Look for the
<a>tag and note:- Class names:
class="kanban-nav"ā use:a.kanban-nav - Href value:
href="/c/support"ā use:a[href="/c/support"]
- Class names:
Common Examples:
- Kanban plugin:
a.kanban-nav - Support category:
a[href="/c/support"] - Documentation tag:
a[href="/tags/documentation"] - Custom page:
a[href="/my-page"] - Second nav button:
#navigation-bar > li:nth-child(2) > a
Color Selection:
Use hex color codes (e.g., #4285F4 for blue). The component automatically generates:
- Lighter shade for top of gradient
- Darker shade for bottom/shadow
- Hover and active state colors
Popular Colors:
- Blue:
#4285F4(default) - Green:
#4CAF50 - Red:
#F44336 - Orange:
#FF9800 - Purple:
#9C27B0
Stable CSS-Only Version
If you prefer direct CSS editing, the previous version (2.0.1) is available:
Install the CSS-only version:
https://github.com/focallocal/nav-buttons-highlighter/tree/stable-v2.0.1
See that branchās README for CSS editing instructions.
Development
This repository contains:
common/common.scssā All button styling and detailed customization guideassets/javascripts/discourse/api-initializers/nav-buttons-highlighter.jsā Minimal initializer (required for Discourse)about.jsonā Component metadata
Troubleshooting
Q: Changes arenāt appearing
A: After editing, click āSaveā and hard-refresh your forum page (Ctrl+F5 or Cmd+Shift+R).
Q: I want to highlight multiple buttons
A: Copy the entire button CSS block and paste it underneath the existing CSS rule, then change the selector and optionally the colors.
License
MIT ā Public Happiness Movement


