We’ve temporarily added the X logo as an available icon in core Discourse to allow everyone to make the branding switch on their own. Upgrading the entirety of Font Awesome in Discourse is a very large project, so this is meant to allow a workaround in the mean time.
If you’re looking to make the change, you can follow these steps:
Add temporary-twitter-x to your svg icon subset site setting
Create a new theme component and add the following code to the noted sections:
Common > Head
<script type="text/discourse-plugin" version="0.11">
api.replaceIcon('fab-twitter', 'temporary-twitter-x');
</script>
Common > Color Definitions
:root {
--twitter: $twitter-or-white: dark-light-choose(unquote("#000"), unquote("#fff"));
}
And that should be that.
You may also wish to update your site text customisations to use the new branding if you haven’t already:
/admin/customize/site_texts?q=twitter
Hopefully this will suffice until a more permanent solution is in place (or it gets changed to something entirely different next month )
16 לייקים
When this eventually happens, will it be optional? I don’t care what Elon says, I’m calling it Twitter, it is not “x”, and I’m keeping it that way on my sites. The logo looks bad anyways, I want to keep the bird.
2 לייקים
Canapin
(Coin-coin le Canapin)
8 באוגוסט, 2023, 8:13am
5
Even if it was the default behavior, you could still use the same code in reverse to replace the 𝕏 with the .
5 לייקים
tknospdr
(David Muszynski)
4 באוגוסט, 2025, 2:59pm
6
I’m not a developer, so I don’t know how to do this, but when using these instructions I get an admin warning banner that points to this page…
Using <script type='text/discourse-plugin> or <script type='text/x-handlebars'> in themes is now deprecated. Any use of these tags in themes should be updated according to the instructions below.
Regular <script> and <script type='text/javascript'> are unaffected by this change.
Timeline
These are rough estimates, subject to change
May 2025 - console deprecation messages enabled
July 2025 - admin warning banners enabled
Late September 2025 - removal of feature
Converting <script ty…
Can this be updated so I don’t lose the X icon?
Moin
4 באוגוסט, 2025, 3:14pm
7
אתה כבר לא צריך את זה מכיוון שאייקון ה-X כלול ב-FontAwesome 6 וה-Discourse עודכן לשימוש בו.
tknospdr
(David Muszynski)
4 באוגוסט, 2025, 3:23pm
8
טוב לדעת, אבל כשניסיתי עם הסמל ‘x-twitter’, הוא נתן לי שטח ריק. כשהוספתי ‘fa-x-twitter’ לרשימת סמלי ה-SVG, לא חל שינוי.
מה עלי לעשות כדי שהוא יופיע רשמית?
Moin
4 באוגוסט, 2025, 3:25pm
9
סמלי מותג צריכים את הקידומת fab (Font Awesome brand)
tknospdr
(David Muszynski)
4 באוגוסט, 2025, 3:26pm
10
ראיתי את זה מהפוסט האחר שלך, תודה.
בהתבסס על מה שראיתי באתר ה-FA, חשבתי שזה אמור להיות רק fa-x-twitter
Moin
4 באוגוסט, 2025, 3:28pm
11
Maybe you were confused by the html example
But you can for example see the fab here
לייק 1
tknospdr
(David Muszynski)
4 באוגוסט, 2025, 3:31pm
12
כנראה. אני פשוט מצביע ולוחץ כמו משוגע לפעמים.