Go to file
dependabot[bot] 68629b43f3
Bump rack from 3.1.12 to 3.1.16 (#96)
Bumps [rack](https://github.com/rack/rack) from 3.1.12 to 3.1.16.
- [Release notes](https://github.com/rack/rack/releases)
- [Changelog](https://github.com/rack/rack/blob/main/CHANGELOG.md)
- [Commits](https://github.com/rack/rack/compare/v3.1.12...v3.1.16)

---
updated-dependencies:
- dependency-name: rack
  dependency-version: 3.1.16
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-06-21 17:56:21 +02:00
.github/workflows DEV: Update CI workflows (#23) 2023-01-10 19:31:09 +00:00
common UX: show search input on narrow screens (#93) 2025-05-06 18:34:45 -04:00
javascripts/discourse DEV: Update linting config and run gjs-codemod (#95) 2025-06-06 11:57:40 +01:00
locales Update translations (#89) 2025-04-28 13:41:31 +02:00
mobile FIX: Use search input id for <SearchMenu /> component (#87) 2025-04-04 11:54:51 +10:00
spec/system DEV: Add system spec to check core features are working fine (#88) 2025-04-09 15:35:52 +02:00
stylesheets DEV: Refactor (#90) 2025-04-21 20:44:20 -05:00
test/acceptance DEV: Remove qunit test for search input (#97) 2025-06-06 18:14:41 +10:00
.discourse-compatibility DEV: Update linting config and run gjs-codemod (#95) 2025-06-06 11:57:40 +01:00
.gitignore DEV: Add CI setup and fix linting issues (#11) 2022-05-13 13:55:40 +02:00
.npmrc DEV: Switch to use pnpm (#68) 2024-10-14 11:28:22 +02:00
.prettierrc.cjs DEV: Update linting (#47) 2023-11-29 23:06:37 +01:00
.rubocop.yml DEV: Update linting setup (#69) 2024-10-17 11:29:35 +02:00
.streerc DEV: Update linting setup (#69) 2024-10-17 11:29:35 +02:00
.template-lintrc.cjs DEV: Update linting (#47) 2023-11-29 23:06:37 +01:00
Gemfile DEV: Update linting setup (#69) 2024-10-17 11:29:35 +02:00
Gemfile.lock Bump rack from 3.1.12 to 3.1.16 (#96) 2025-06-21 17:56:21 +02:00
LICENSE DEV: Update license (#80) 2025-02-24 11:32:36 +08:00
README.md Ensure README images are pointing to discourse/gh-owned repositories (#24) 2023-01-25 17:34:33 +05:30
about.json DEV: Update theme name to Advanced Search Banner (#84) 2025-03-17 12:18:24 +10:00
eslint.config.mjs DEV: Update eslint config (#70) 2024-11-19 15:24:04 +01:00
package.json DEV: Update linting config and run gjs-codemod (#95) 2025-06-06 11:57:40 +01:00
pnpm-lock.yaml DEV: Update linting config and run gjs-codemod (#95) 2025-06-06 11:57:40 +01:00
settings.yml UX: add "discovery" option, plugin outlet (#30) 2023-04-18 15:20:25 -04:00
stylelint.config.mjs DEV: Update linting (#85) 2025-03-19 11:56:56 +00:00
translator.yml DEV: Add Crowdin support (#58) 2024-06-11 13:37:48 +02:00

README.md

This is a component that puts a search bar along with optional headline and subhead text in a banner above the main topic list navigation of a Discourse community.

By default this banner appears on all top-level topic pages (latest/new/unread/top/categories... anything in the top menu site setting) but it can also be set to only display on a community's homepage.

screenshot

🏗️ Github repo: https://github.com/discourse/discourse-search-banner

🔭 Preview it on theme creator

How do I install a theme component?

💖 This very heavily borrows from angus' header search component: https://meta.discourse.org/t/header-search-theme/67959

Available settings

  • Set the headline and subhead text
  • Show the banner on all top-level topic pages (default), or just the homepage
  • Set a background image

Custom styling

The HTML element gets a class named .display-search-banner wherever this banner appears, and the banner itself is wrapped with the .custom-search-banner class, so with some CSS you should be able to customize the appearance of this banner however you see fit.

Future enhancements

  • Add an option to enable the banner in specific categories