Iconified Header Links

Hey guys and gals, new to discourse, but have managed to have it up and running almost a month now with zero problems thanks to these forums! But I am having an issue with one signle icon “discord”. I am able to load up FB, Twitch and a custom no problem, but for whatever reason the Discord icon just refuses to load. There is an empty place where the icon should be and an active link but no icon.

I have tried the following combinations of the icon link:

Discord,discord,URL,vdm,blank
Discord,fab.fa-discord,URL,vdm,blank
Discord,.fab.fa-discord,URL,vdm,blank
Discord,fab.discord,URL,vdm,blank

Any suggestions?

UPDATE

Does anyone know what CDN version this theme addon is using for font awesome? Other people experiencing the same issues where still using version 4. I am wondering how to determine what version this is currently using and if it is possible to upgrade it to version 5 if it’s not already on it.

Does anyone have a solution to this issue?

Yes, the answer is already what you stated: we’re using Font Awesome 4. We are executing a broad switch to SVG based glyph rendering (instead of font icons) but this will take months, it’s quite difficult.

4 Likes

Would it be possible to add a rel="me" attribute to the generated links, as an option. If the icon refers to social media channels, then this helps to verify the authenticity of the link.

Unfortunately the Mastodon icon is not yet in current FontAwesome, but there the rel attribute causes a nice green checkbox to be shown on the Mastodon profile.

See also: rel="me" · Microformats Wiki

Hi @Johani! I think the component broke due to core changes:

2 Likes

I tested it since this update, it works, you need to upgrade the theme componant, and add the icons you want to use in the Svg icons setting of the theme componant

ex:

image

5 Likes

First of all thanks for the great component for the discourse :slight_smile:

Furthermore, I was a bit struggling with this one as it didn’t show the icons first. The issue was:

Instagram,instagram,https://www.instagram.com/blahblah/,vdm,blank 

If you type the second word Instagram with a capital letter - the icon won’t appear :slight_smile: That took me around an hour to figure this out :slight_smile: So again: The word for the icon has to be typed in with small letters, otherwise the icon won’t appear on your site.

3 Likes

Thanks for reporting the issue @tello80 :+1:

I pushed a small fix and letter case for icons should not matter now

https://github.com/hnb-ku/discourse-header-links/commit/7f7ccafcad24600f1757a21d76a6f36439ef427e

5 Likes

Thanks for this awesome component @Johani. My home button looks great:

image

I noticed none of the header button or icons show up on a 404. Example: https://forum.networklessons.com/does_not_exist

image

Is this a bug in Discourse?

@Johani is is possible to have different sets of visibility for the iconified header links? For example:

  • iconified header links visible only to anonymous users
  • iconified header links visible only to logged in users
  • iconified header links visible to everyone

Use case:

  • add “Anonymous Icon” header link … which should be visible only for the logged in users.

Is it possible to add “Anonymous Icon” action to iconified header links at all? According to Help! with the Anonymous feature on discourse it is a java action.

Thank you for your help!

2 Likes

I try ading the fa-blog icon but it does not appear.
I tried fas.fa-blog, fa-blog, blog etc. nothing is working.

1 Like

That looks like a recent addition to FontAwesome. It will shortly be available in Discourse, I will update our FontAwesome dependency in the coming week.

7 Likes

FontAwesome has been updated to the latest version (5.7.2), and the blog icon is now available for use @MikesCafe.

7 Likes

Is there any way I can use a custom icon (not included in Font Awesome) with this component ?

Yes, as of this commit, you can now add custom icons to your theme or theme component. See the “adding custom icons” section of Introducing Font Awesome 5 and SVG icons.

9 Likes

How can I add the Anonymous icon and function into this theme component? I can’t fetch a link when I hover over the icon. Maybe this code can help?

im looking for the same thing but for messages

I’m not getting it to work. Pls help.

1 Like

Please use blog with the fa- prefix in the svg icons setting. I’m going to update the theme component now so that it doesn’t include fa- in the default values of that setting, that’s misleading.

4 Likes

I really enjoy this plugin but I couldn’t figure out the syntax to make the new FA5 TeamSpeak icon work. No matter what combination of things I tried I got a blank space.