Personalizza il testo 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 Mi Piace

C’è un modo per aggiungere un collegamento ipertestuale a un testo personalizzato?

SĂŹ, puoi farlo usando i collegamenti markdown, ad esempio:
Questo è un collegamento a Google!
Che è (grezzo):

Questo è un [collegamento](https://google.com) a Google!
1 Mi Piace

Grazie @Firepup650. Sto cercando di aggiornare del testo nel footer di una delle email e quando incollo la tua riga viene visualizzato come sotto. Forse questi link markdown non funzionano nelle email?

Stavo cercando di aggiornare user_notifications.chat_summary.unsubscribe_no_link

Hm. Forse i modelli di email sono diversi. Potresti provare l’HTML non elaborato invece?

Questo è un link a Google!
Che è (non elaborato):

Questo è un <a href="https://google.com/">link</a> a Google!
1 Mi Piace

Ha funzionato! Grazie.

1 Mi Piace

Mi chiedo se fosse ancora così fino alla nuova barra laterale dell’amministratore… :upside_down_face:

Dobbiamo modificare in blocco questi record

C’è Globally replace translations per sostituire una parola ovunque.

Grazie, questo autore viene anche dal mio paese!!

Ho provato a cambiare il testo, ma il pulsante “Salva modifiche” è disattivato.

Ho problemi ad applicarlo alla nostra pagina di benvenuto “Login Required”. Sembra che sia in un div o qualcosa del genere, ma il link non è cliccabile come previsto. Come potrei uscire alla finestra corrente come target per il link? (Fare clic destro e selezionare “Apri questo link in una nuova scheda…” funzionerà ovviamente.)

:white_check_mark: Risolto:
Ho usato un’ancora che puntava a target=“_blank” :slight_smile: