Customize text in Discourse

:bookmark: This is a guide for customizing text in Discourse via the admin interface, enabling changes to various UI elements.

:person_raising_hand: Required user level: Administrator

In Discourse, you can customize all of the text via the admin interface. This can be useful for tailoring the user experience to better fit the particular tone or branding of your community.

Summary

This guide will cover:

  • Accessing the text customization interface
  • Editing text strings
  • Identifying translation keys

Accessing the text customization interface

To customize the text in Discourse, navigate to the text customization page:

  1. Go to Admin.
  2. Search for site text in the sidebar search.
    OR
    Enter the URL of the screen directly https://discourse.example.com/admin/customize/site_texts

You will be presented with a page where you can search for specific text strings to edit.

Editing text strings

To edit a text string:

  1. Search for the text you want to customize.
  2. Click Edit.
  3. Enter the new value.

For example, you might want to personalize the “About Your Site” link:

After making changes and refreshing the page, the text will be updated:

Identifying translation keys

If you need help identifying the strings to translate, refer to this guide: Find a translation key with verbose localization

FAQs

Can I customize all text in Discourse including system messages?
Yes, you can customize almost all text strings, including system messages, notifications, and UI elements.

Do I need to refresh the page to see changes?
Yes, after making changes, you’ll need to refresh the page for the updated text to appear.

Last edited by @Moin 2024-07-22T06:11:29Z

Check documentPerform check on document:
「いいね!」 74

カスタムテキストにハイパーリンクを追加する方法はありますか?

はい、マークダウンリンクを使用することで可能です。例:
これはGoogleへのリンクです!
(生の)マークダウンは次のとおりです:

これはGoogleへの[リンク](https://google.com)です!
「いいね!」 1

@Firepup650さん、ありがとうございます。メールのフッターテキストを更新しようとしていますが、あなたの行をコピーして貼り付けると、以下のように表示されます。これらのMarkdownリンクはメールでは機能しないのでしょうか?

user_notifications.chat_summary.unsubscribe_no_link を更新しようとしていました。

うーん。メールテンプレートが違うのかもしれません。生のHTMLを試していただけますか?

こちらはGoogleへのリンクです!
(生のHTMLは)次のようになります:

こちらはGoogleへの<a href="https://google.com/">リンク</a>です!
「いいね!」 1

うまくいきました!ありがとうございます。

「いいね!」 1

新しい管理者サイドバーまで、まだそうだったのだろうか… :upside_down_face:

これらのレコードをバッチで変更する必要があります

単語をすべて置き換えるには、Globally replace translations を参照してください。

ありがとうございます、この作者は私の国の人でもあります!!

テキストを変更しようとしましたが、「変更を保存」ボタンが無効になっています。

ログイン必須のウェルカムページにこれを適用するのに苦労しています。div内にあるようですが、リンクは期待どおりにクリックできません。リンクのターゲットとして現在のウィンドウにエスケープするにはどうすればよいですか?(右クリックして「このリンクを新しいタブで開く…」を選択すると、もちろん機能します。)

:white_check_mark: 修正済み:
target=“_blank” を指定したアンカーを使用しました :slight_smile: