ブランドヘッダー

||||
-|-|
:discourse2: | 概要 | Brand Header は、ロゴ、ナビゲーションリンク、ソーシャルアイコンを備えたブランド用の追加トップヘッダーを、モバイルおよびデスクトップの両方のビューに追加します。ブランドロゴは画像またはテキストにできます。
| :eyeglasses: | プレビュー | Discourse Theme Creator でのプレビュー |
:hammer_and_wrench: | リポジトリリンク | https://github.com/discourse/discourse-brand-header
:open_book: |Discourse テーマが初めてですか? | Discourse テーマの使用に関する初心者向けガイド

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

機能

デスクトッププレビュー:

モバイルプレビュー:

設定

| 名前 | 説明
|-|
| brand name |
| website url |
| mobile logo url |
| リンク | ヘッダーに表示されるテキストリンク
| アイコン | ヘッダーに表示されるアイコンリンク
| カスタム Font Awesome 6 アイコン | このテーマコンポーネントで使用される FontAwesome 6 アイコンのリスト
| show bar on mobile |
| plugin outlet |


Font Awesome 6 アイコンの使用

このテーマコンポーネントで Font Awesome 6 アイコンが正しく表示されるようにするには、Discourse 内の 3 か所にそれらを追加する必要があります:

  1. svg icon subset サイト設定
  2. コンポーネント内の custom font awesome icons 設定
  3. コンポーネント内の icons 設定

さらに、一部の Font Awesome 6 アイコンについては、アイコン名に fa または fab プレフィックスを指定する必要があります(例: “fab-bluesky”)。これは、一部のアイコンが特定のアイコンサブセットの一部であるためです。この使用方法の詳細については、We’re upgrading our icons to Font Awesome 6! を参照してください。

これらすべてのアイコンを 3 か所に追加すると、ブランドヘッダーテーマコンポーネントでそれらが正しく表示されるようになります。

:discourse2: 当社のホスティングをご利用ですか? テーマコンポーネントは、Standard、Business、Enterprise プランで利用可能です。

「いいね!」 87
Is there a setting to add Facebook, twitter , Instagram profile links?
Beginner's guide to using Discourse Themes
Reuse Discourse Hamburger Functionality
Introducing Font Awesome 5 and SVG icons
How to use brand header html in my WordPress site
WordPress in a Discourse iFrame?
How to create additional header?
How to put a backlink to our company website above the top-menu in discourse?
Can I add a icon and link back to my homesite at the top bar
Customise home login page
How to finely scroll out custom header?
Login with federated social networks
Customize Your Site Branding
Need to create good-looking front page with Discourse login option
How I can add a custom header
Horizon interaction with Brand Header
How to add a directory of people/businesses to my theme?
How to create custom theme component?
Custom website header with forum
Adding header in theme messes up topic progress bar (when docked)
Structuring a multilingual community
Are these possible only with a custom theme?
Horizon Theme
How do I move an image/banner to the VERY top of the page?
Combining Brand Header and Header Submenus Plugins
Brand Header breaks chat reply box on mobile (iOS)
Air Theme
Quick access to bookmarks and messages on user menu
Why does the logo navigate to Discourse home not main site home
TavoWEB theme for Discourse
How to make your side have a side-bar and external links
Display name of forum
DiscoTOC & Brand Header - using together
TypeError: Discourse._registerPluginCode is not a function
Brand header theme component breaks page layout on static and no_ember pages
Brand header theme component breaks page layout on static and no_ember pages
How to add top menu bar like try.discourse.org
Dropdown links in existing Header
Insert Link to External Website
Structuring a multilingual community
Help needed with theming and logo
How do the Links and Icons settings work?
Customizing your site with existing theme components
How to embed Discourse in Wordpress?
Customize the header with links, icons, or menus
🌅 Introducing Horizon, our newest theme

@vinothkannans Great component!

One small issue. Currently, if a header link is internal to a site (e.g. to a particular category), if it is tapped in the responsive menu, the responsive menu will stay open. The expected behaviour is that the menu would close.

「いいね!」 5

I am also seeing this issue for internal links, where the header does not disappear on mobile. Instead, the header slides right and leaves the main page opaque (I believe an overlay is being set), even if the header is folded back up.

Is there a fix for this?

In the mobile view, when we click on the hamburger menu, if then we click outside of the menu, the hamburger menu would be expanded even more, instead of closing. and also it has some other glitches. for example when hamburger menu is open and we click on a topic link.

「いいね!」 1

興味があるのですが、ヘッダーの左側にリンクを移動させるために、使用または編集できるコードはありますか?

できれば、fa アイコンは元の位置(右端)に残したままにしたいです。単にどのように見えるか見てみたいです。

こんにちは。ヘッダーの上ではなく、下にバーを表示するオプションを追加することに賛成でしょうか?

「いいね!」 1

もちろん、プルリクエストとして提出していただければ、受理します。

「いいね!」 4

それに関連して変更が必要なものについて、何かヒントはありますか?私は以前、Discourse を使ったことがありません。

「いいね!」 1

https://github.com/discourse/discourse-brand-header/blob/master/common/header.html#L192-L194

ウィジェットを「above-site-header」ではなく「below-site-header」コネクタにマウントする必要があります。それには、いくつかの追加調整も必要になります。

「いいね!」 6

ありがとうございます、動作するようにできました!もう少し時間があるときにプルリクエストを送ると思います。

「いいね!」 4

リンクにオプションの target 属性を追加する他の PR をマージしました。

「いいね!」 8

これは以下のコミットで完了しました

「いいね!」 4

この変更は素晴らしいですが、私が個人的に利用しているいくつかのサイトや、モデレーターを務めているホストサイト(NaNoWriMoフォーラム)では、いくつかの問題が発生しています。通常のハンバーガーメニューとは異なり、スワイプで消そうとしても、再び画面に戻ってしまいます。

この現象は、Android 9 に完全に更新された Moto g7 Power と、完全に更新された iPhone 8 の両方で確認しています。

また、アイコンの近くをタップした際にもメニューが開いてしまうという報告が少なくとも1件ありますが、私はその特定の動作を再現できていません。

「いいね!」 2

ありがとうございます!実は、適切なプルリクエストを作成する時間が取れませんでした。以下の/上記のサイトヘッダー設定を追加していただけるでしょうか?

「いいね!」 1

ヘッダーのリンクに、CSS クラスや target 属性などを何らかの方法で追加できるようにすると、とても役立ちそうですね。

「いいね!」 1

モバイルデバイスでメニューが機能しないという問い合わせを受けました。ユーザーは左側のハンバーガーメニューをタップした後、メニュー内のリンクを選択しましたが、メニューが画面の大部分を占めたままだったため、動作していないと感じたようです。

私は、メニューを閉じるには画面の右側、メニューの外側をタップする必要があると説明せざるを得ませんでした。

より直感的にするために、以下のような対応は可能でしょうか?

  • モバイルデバイスでメニュー内のリンクをクリックした際に、メニューを自動的に閉じる
  • モバイルデバイスに「メニューを閉じる」ボタンを表示する
「いいね!」 1

似たようなリクエストを投稿しようと思っていたところです。モバイル版でメニューを左にスワイプして閉じようとするのですが、一瞬閉じたように見えてすぐに元の位置に戻ってしまいます。Discourse の他のメニューでは、スワイプして閉じる機能が正常に動作しています。

「いいね!」 1

こんにちは!

同じフォーラムの2つのバージョン(discourse 3.2.0.beta4-dev と discourse 3.3.0.beta1-dev)で異なるレイアウトを試しています。

以下は、カスタムCSSなしの生のコンポーネントの例です。

DiscourseのHTMLレイアウトは、2つのバージョン間で変更されましたか?

また、「スライドイン」動作がv3.3で壊れています。

「いいね!」 2

Discourse 3.2.2 でも同じ問題が発生しています。スライドインの動作が壊れています。

上記の投稿の日付を見ると、brand-header テーマコンポーネントはまだサポートされているのでしょうか?

前の2つの投稿に基づくと、少なくとも5か月間壊れており、誰も応答していません。誰かが別のことを言わない限り、このテーマコンポーネントは廃止されたと仮定します。