https://github.com/discourse/discourse-header-search
https://github.com/discourse/discourse-header-search
discourse-theme-component
Last synced: 21 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/discourse/discourse-header-search
- Owner: discourse
- License: mit
- Created: 2021-06-16T17:52:16.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2025-04-07T02:35:27.000Z (27 days ago)
- Last Synced: 2025-04-07T03:27:42.585Z (27 days ago)
- Topics: discourse-theme-component
- Language: JavaScript
- Homepage:
- Size: 1.12 MB
- Stars: 1
- Watchers: 20
- Forks: 11
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Discourse Advanced Header Search Component
This component removes the search icon from the header menu and creates a search bar which is placed in the middle of the header area.

### Optionally show external search icons
Use the `extra_search_icons` to show additional icons in the search bar.
This setting supports the following params:
- `prefix`: the prefix to the search URL when clicking the respective icon
- `icon`: icon to show, from the Font Awesome set (may need to be added to the `svg icons` setting as well)
- `target`: optionally set to "\_blank" to open the link in its own tab/window by default
- `showInCategories`: category IDs where the given icon should be shown exclusively (by default, icon is shown everywhere)
- `excludeFromCategories`: category IDs where the given icon should not be shown