高度な検索バナー

:warning:

このテーマコンポーネントは非推奨となり、使用することは推奨されません。その機能は現在 Discourse Core に組み込まれています。ウェルカムバナーの設定方法については、以下のドキュメントをご覧ください:

Creating a banner to display at the top of your site

:discourse2: 概要 Advanced Search Banner は、メインのトピックリストナビゲーションの上に、検索バーと任意の見出し・サブヘッドテキストを組み合わせたバナーを表示します。
:eyeglasses: プレビュー Discourse Theme Creator でのプレビュー
:hammer_and_wrench: リポジトリリンク https://github.com/discourse/discourse-search-banner
:open_book: Discourse テーマについて初めての方へ Discourse テーマの使用に関する初心者向けガイド

このテーマコンポーネントをインストール

機能

デフォルトでは、このバナーはすべてのトップレベルのトピックページ(最新/新規/未読/トップ/カテゴリ… top menu サイト設定のいずれか)に表示されますが、コミュニティのホームページのみに表示するように設定することもできます。

設定

名前 説明
show on バナーが表示されるページを決定します
plugin outlet バナーがページ上のどこに表示されるか
background image light ライトカラースキームでのバナーの背景画像
background image dark ダークカラースキームでのバナーの背景画像
tile background image 背景画像をタイル状に繰り返す
show for Search Banner を誰に表示するか(ログイン済み、ログアウト済み、または両方)
special style 検索バナーの外観を変更する任意のバリエーション
翻訳キー デフォルト値
search_banner.headline コミュニティへようこそ
search_banner.subhead ここにご参加いただきありがとうございます。お手伝いが必要な場合は、投稿する前に検索してください。
search_banner.search_button_text

表示したくない場合は、フィールドを空白のままにしてください。

カスタムスタイル

このバナーが表示される箇所には HTML 要素に .display-search-banner というクラス名が付けられ、バナー自体は .custom-search-banner クラスで囲まれています。したがって、CSS を少し追加するだけで、お好みに合わせてバナーの外観をカスタマイズできるはずです。

今後の機能強化

  • 特定のカテゴリでのバナー有効化オプションの追加

クレジット

:sparkling_heart: このコンポーネントは、@angus による Pavilion Header Search Theme Component を大幅に参考にしています。


:discourse2: ホスティングサービスをご利用中ですか? テーマコンポーネントは、当社の Standard、Business、Enterprise プランでご利用いただけます。

「いいね!」 83
[PAID] New search bar
Bringing popular features to Discourse: Header search, welcome banner, and category icons / emoji
Elementary Layout Component
Searching for users on mobile
New Theme: Tag-Pages Navigation
How to add links on home page menu to other site?
New Theme: Tag-Pages Navigation
Adding Search option
Header search in custom header
Can't find how to localize a theme component
Creating and installing plugins?
Bug with "search_banner.search_button_text" shown in search banner theme component
Pavilion Header Search Theme Component
Help Needed for Installing Meta Branded Theme
Banner Featured Links
Search section like on Reddit?
How do I edit "Welcome to our community" and tagline on the Homepage?
Anything wrong with this component?
User card out of alignment
Search Banner image cuts off on smaller screens
Pavilion Header Search Theme Component
Where to find search bar in our settings?
Where to find search bar in our settings?
3.5.0.beta9: Improving color management, core welcome banner, and staff action log filters
Welcome Banner components
What plug-in or customization for this header?
Translations of theme component sample texts
Homepage header, how to add?
How can I make the home page similar to this one?
Theme or Custom CSS on Monday’s Discourse Instance?
Community not displaying correctly - new problem - help!
Christmas Decoration Component :christmas_tree:
Challenge with non-admin users not getting page to load?
We're upgrading our icons to Font Awesome 6!
Search for and/or filter topics in a category using text search
Forum search bar not showing up
How to add custom links below welcome banner?
Pavilion Header Search Theme Component
Search banner requires login
Mint Theme
Advanced Header Search
Custom Platform
Making my discourse site look a certain way
How can I change the HTML template of advanced search?
Fully Theme
How to change the header text on the title page
How to make a custom search bar?
Bug in Search banner theme component
Simple modifications
How can I achieve these header and footer customisations?
Meta Branded theme and all categories header
Search in this topic filter issue with Search banner TC
Bug with "search_banner.search_button_text" shown in search banner theme component