Skip to content

Fontawesome 5

Unsolved Customisation
14 2 3.2k 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
  • 3 Votes
    1 Posts
    575 Views
    No one has replied
  • MogoDB v6 to v7 upgrade

    Solved Configure nodebb
    5
    1 Votes
    5 Posts
    1k Views
    @Panda if you used the Ubuntu PPA, I think this only goes as far as 6.x if I recall correctly.
  • Bug Report

    Solved Bugs nodebb bugs
    47
    1
    26 Votes
    47 Posts
    10k Views
    @crazycells Good points, thanks. I completely forgot that classes are added - makes life much simpler! EDIT - seems this is pretty straightforward, and only needs the below CSS .upvoted i { color: var(--bs-user-level) !important; } This then yields [image: 1718028529465-3f072f8a-ebfa-4910-8723-73c493b8e4eb-image.png] However, the caveat here is that the .upvoted class will only show for your upvotes, and nobody else’s. However, this does satisfy the original request however I would love to see my upvoted posts more clearly, because currently, when I upvote, nothing on the post tool is changing, it would be nicer if there is an indication that I have upvoted (like a filled or colored triangle?)
  • Difficult to move posts now, on mobile.

    Bugs nodebb
    16
    1
    5 Votes
    16 Posts
    3k Views
    @DownPW Yes, it is. It’s set far too low meaning other elements with a higher preference will sit over the top of it.
  • Chevron up before & after

    Solved Configure nodebb
    11
    1
    4 Votes
    11 Posts
    2k Views
    @crazycells you are right thank you.
  • Rotating homepage icons, gifs?

    Solved Configure nodebb
    2
    3 Votes
    2 Posts
    755 Views
    @eveh It’s not a GIF, no. It’s actually a webp file so made much smaller, and uses keyframes to control the rotation on hover. You can easily make your own though The CSS for that is as below @keyframes rotate180 { from { transform: rotate(0deg); } to { transform: rotate(180deg); } } @keyframes rotate0 { from { transform: rotate(180deg); } to { transform: rotate(0deg); } } Your milage may vary on the CSS below, as it’s custom for Sudonix, but this is the class that is used to control the rotate .header .forum-logo, img.forum-logo.head { max-height: 50px; width: auto; height: 30px; margin-top: 9px; max-width: 150px; min-width: 32px; display: inline-block; animation-name: rotate180, rotate0; animation-duration: 1000ms; animation-delay: 0s, 1000ms; animation-iteration-count: 1; animation-timing-function: linear; transition: transform 1000ms ease-in-out; }
  • tag icon in front of tags

    Solved Customisation css
    5
    3 Votes
    5 Posts
    1k Views
    @phenomlab said in tag icon in front of tags: @crazycells Are you using Font Awesome Free ? If so, try this span.tag:before { content: "\f02b"; font-family: "Font Awesome 5 Free"; margin-right: 5px; margin-left: 5px; font-weight: 900; } yeap, this worked thanks a lot.
  • Display tweets in widget [NodeBB]

    Solved Customisation
    29
    4 Votes
    29 Posts
    8k Views
    @phenomlab brilliant, many thanks Mark