Skip to content

Fontawesome 5

Unsolved Customisation
14 2 3.7k 1
  • @phenomlab the free version

    @pwsincd Here’s the steps to add

    1. Open the ACP, and go to Appearance -> Custom Header. Within the custom header, we need to add
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css" integrity="sha512-1ycn6IcaQQ40/MKBW2W4Rhis/DbILU74C1vSrLJxCq57o941Ym01SwNsOMqvEBFlcgUa6xLiPY/NS5R+E6ztJQ==" crossorigin="anonymous" referrerpolicy="no-referrer" />
    

    It should look like the below. Don’t forget to add the DOCTYPE and <head> values before anything else.

    e4c19939-e079-4507-907b-d6de2e4a6202-image.png

    1. In the same location, we need to add
    <script src="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/js/all.min.js" integrity="sha512-Tn2m0TIpgVyTzzvmxLNuqbSJH3JP8jm+Cy3hvHrW7ndTDcJ1w5mBiksqDBb8GpE2ksktFvDB/ykZ0mDpsZj20w==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
    

    You should now have something like the below

    0aa95976-c73d-4737-9cc2-c7eae8ca9c69-image.png

    Ensure that both of the below are on

    beaa416f-fd89-45e2-80b4-ab561443934b-image.png

    Save the changes

    This will now pull the required CSS and JS from the CDN on each page load. When attempting to use the font itself, you will need to identify it with font-family, so for example

    .mytarget {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    }
    

    Note that the free version only supports the solid icons, so it’s necessary to set the font-weight attribute.

    If you are looking to replace the existing icons, let me know as this requires additional configuration for it to work properly. This is something I do with a Pro subscription I have that Sudonix is using.

  • @pwsincd Here’s the steps to add

    1. Open the ACP, and go to Appearance -> Custom Header. Within the custom header, we need to add
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css" integrity="sha512-1ycn6IcaQQ40/MKBW2W4Rhis/DbILU74C1vSrLJxCq57o941Ym01SwNsOMqvEBFlcgUa6xLiPY/NS5R+E6ztJQ==" crossorigin="anonymous" referrerpolicy="no-referrer" />
    

    It should look like the below. Don’t forget to add the DOCTYPE and <head> values before anything else.

    e4c19939-e079-4507-907b-d6de2e4a6202-image.png

    1. In the same location, we need to add
    <script src="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/js/all.min.js" integrity="sha512-Tn2m0TIpgVyTzzvmxLNuqbSJH3JP8jm+Cy3hvHrW7ndTDcJ1w5mBiksqDBb8GpE2ksktFvDB/ykZ0mDpsZj20w==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
    

    You should now have something like the below

    0aa95976-c73d-4737-9cc2-c7eae8ca9c69-image.png

    Ensure that both of the below are on

    beaa416f-fd89-45e2-80b4-ab561443934b-image.png

    Save the changes

    This will now pull the required CSS and JS from the CDN on each page load. When attempting to use the font itself, you will need to identify it with font-family, so for example

    .mytarget {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    }
    

    Note that the free version only supports the solid icons, so it’s necessary to set the font-weight attribute.

    If you are looking to replace the existing icons, let me know as this requires additional configuration for it to work properly. This is something I do with a Pro subscription I have that Sudonix is using.

    @phenomlab This is great , i think you included some info i was missing i was almost there … replacing the whole sites fonts would be cool , is that with some kind of shim?

  • @phenomlab This is great , i think you included some info i was missing i was almost there … replacing the whole sites fonts would be cool , is that with some kind of shim?

    @pwsincd No, you should be able to override all of them, but likely on a one-by-one basis. You could use the css class of * but this is complete overkill and will impact other fonts on the site as it covers every single class.

  • @pwsincd No, you should be able to override all of them, but likely on a one-by-one basis. You could use the css class of * but this is complete overkill and will impact other fonts on the site as it covers every single class.

    @phenomlab Capture.PNG

    adding the code you posted , instantly affects some icons with the default FontAwesome as you can see they are now ?

  • @phenomlab Capture.PNG

    adding the code you posted , instantly affects some icons with the default FontAwesome as you can see they are now ?

    @pwsincd Can you share a URL where I can see this ? Over PM if you’d prefer 🙂

  • @phenomlab Capture.PNG

    adding the code you posted , instantly affects some icons with the default FontAwesome as you can see they are now ?

    @pwsincd This doesn’t look right at all

    2a8e7877-7728-45de-9a8d-c1f4b0f0123b-image.png

    Can you give me admin access to this site so I can take a look at your config please ?

    Let me know if feasible, and I’ll create an account.

  • @pwsincd This doesn’t look right at all

    2a8e7877-7728-45de-9a8d-c1f4b0f0123b-image.png

    Can you give me admin access to this site so I can take a look at your config please ?

    Let me know if feasible, and I’ll create an account.

    @phenomlab did u make an account

  • @phenomlab did u make an account

    @pwsincd Just created one

  • @pwsincd Just created one

    @phenomlab ok i will have to get back to this … i will DM when i available… IRL calling.

  • @phenomlab ok i will have to get back to this … i will DM when i available… IRL calling.

    @pwsincd no problems. Just let me know.

  • @phenomlab ok i will have to get back to this … i will DM when i available… IRL calling.

    @pwsincd hi. Just following up on this thread (I know it’s old) but was curious to understand if it’s still an issue or not ?


Related Topics
  • navigation menu panel on mobile

    Solved Customisation nodebb css
    8
    1
    7 Votes
    8 Posts
    2k Views
    @crazycells hmm. That’s odd. I haven’t made any changes from recollection but I could be wrong. I’ll need to check. EDIT - very strange. I honestly don’t recall adding the below CSS block to alter the bottom bar, but you’re right… .bottombar-nav { padding: 0px !important; } I’ve removed this so it reflects stock Harmony.
  • Smart Widgets

    Solved Configure nodebb
    9
    3 Votes
    9 Posts
    2k Views
    @Panda said in Smart Widgets: So why is that, or conversely why would the function to expose username ever be required, as it seems app.user is already an available global object? It is, yes, but not if you are using it outside of a widget. The function I wrote is also historical and comes from the 2.x train
  • NodeBB upgrade now cant post

    Solved Bugs nodebb
    5
    2 Votes
    5 Posts
    1k Views
    @Panda yes, for some reason, that is the case. If you need an urgent response, it’s probably better to post here because of the time difference.
  • Header Menu After Upgrading V3.1.1

    Solved Customisation header nodebb
    2
    1
    2 Votes
    2 Posts
    851 Views
    @cagatay this relates to a change the css classes used for the brand header meaning it will now float to the left instead of right. If you’d like to retain the original behavior, you can add this css class [data-widget-area="brand-header"] { justify-content: end; display: flex; } Further information here https://community.nodebb.org/topic/17090/manual-build-a-custom-header-in-harmony/19?_=1684069325296
  • Custom badges

    Solved Customisation nodebb
    103
    2
    49 Votes
    103 Posts
    34k Views
    Perfect
  • Podcast Share NodeBB

    Solved Configure podcast nodebb
    15
    4 Votes
    15 Posts
    3k Views
    @cagatay You could experiment with nodebb-plugin-ns-embed but I expect the x-origin tag on the remote site to prevent playback.
  • chat list navbar

    Solved Customisation css navbar chat menu
    30
    2
    3 Votes
    30 Posts
    8k Views
    No no it’s ok @phenomlab I just comment the 2 lines mentionned aboves
  • NodeBB - Created pages not found?

    General
    20
    3 Votes
    20 Posts
    4k Views
    @jac Exactly. Hard point to argue.