• Home
  • Categories
  • Recent
  • Popular
  • Top
  • Tags
  • Users
  • Groups
  • Documentation
    • Home
    • Read API
    • Write API
    • Plugin Development
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
v3.5.2 Latest
Buy Hosting

How do I use other font awesome icons?

Scheduled Pinned Locked Moved Unsolved Technical Support
12 Posts 5 Posters 656 Views
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Jim BridgerJ Offline
    Jim BridgerJ Offline
    Jim Bridger
    wrote on last edited by
    #1

    When you pick an icon for a category, you can choose from a bunch of icons.

    Then at the bottom, it says "For a full list of icons, please consult: FontAwesome"

    But if I go to fontawesome, copy an icon name, and paste it into the icon chooser, it doesn't work, the icon is just blank.

    How do I use icons not included by default?

    PitaJP 1 Reply Last reply
    0
  • PitaJP Offline
    PitaJP Offline
    PitaJ Global Moderator Plugin & Theme Dev
    replied to Jim Bridger on last edited by
    #2

    @jim-bridger can you provide an example?

    Jim BridgerJ 1 Reply Last reply
    0
  • Jim BridgerJ Offline
    Jim BridgerJ Offline
    Jim Bridger
    replied to PitaJ on last edited by
    #3

    I'm trying to use the "palette" icon, it's not in the list provided by default, but is on the font awesome website

    phenomlabP 1 Reply Last reply
    0
  • PitaJP Offline
    PitaJP Offline
    PitaJ Global Moderator Plugin & Theme Dev
    wrote on last edited by
    #4

    You're probably looking at FA v5 but we're using v4: https://fontawesome.com/v4.7/icons/

    1 Reply Last reply
    1
  • phenomlabP Offline
    phenomlabP Offline
    phenomlab
    replied to Jim Bridger on last edited by
    #5

    @jim-bridger I've worked around this by loading the FA5 js and CSS using a custom header. Works fine for me, but can be somewhat quirky in the sense that you need to leverage pseudonym CSS such as :before and :after with hex codes to get them to display.

    dunlixD 1 Reply Last reply
    1
  • dunlixD Offline
    dunlixD Offline
    dunlix GNU/Linux Gamers
    replied to phenomlab on last edited by
    #6

    @phenomlab I believe I made a post here discussing this @Jim-Bridger the link is https://community.nodebb.org/post/82920

    phenomlabP 1 Reply Last reply
    0
  • phenomlabP Offline
    phenomlabP Offline
    phenomlab
    replied to dunlix on last edited by
    #7

    @dunlix yes, correct. My answer is also in this post

    1 Reply Last reply
    1
  • Jim BridgerJ Offline
    Jim BridgerJ Offline
    Jim Bridger
    wrote on last edited by Jim Bridger
    #8

    I'm not really interested in doing anything that would require editing CSS, so I will be sticking with v4. It just seemed like we were able to use more icons by pasting in the name.

    I opened an issue and the link has been updated so at least the next new users who comes across this wont be completely confused.

    1 Reply Last reply
    0
  • crazycellsC Offline
    crazycellsC Offline
    crazycells
    wrote on last edited by
    #9

    Hi @phenomlab ,

    I am trying to change voting icons on the posts. It will be a regular thumbs-up/thumbs-down icon, but after upvoting, it will turn into solid thumbs-up or thumbs-down... For fontawesome 4, this CSS change was working fine:

    span.votes {
        .far-chevron-up {
            content: "\f087";
        }
    
        .upvoted .fa-chevron-up:before {
            content: "\f164";
        }
    }
    
    

    However, in Font Awesome 5 it is not working anymore since both solid and regular thumbs up icons have the same unicode, but they are in two different classes... fas (for solid) and far (for regular)...

    they both have f164 (thumbs up) and f165 (thumbs down) codes...

    What would be the easiest way to implement this?

    https://fontawesome.com/v5.0/icons/thumbs-down?style=regular
    https://fontawesome.com/v5.0/icons/thumbs-down?style=solid

    phenomlabP 1 Reply Last reply
    0
  • phenomlabP Offline
    phenomlabP Offline
    phenomlab
    replied to crazycells on last edited by phenomlab
    #10

    @crazycells it should be that you can control the switching between solid and light for example by using font-weight: 400; for light and font-weight: 900; for solid where you set the Unicode value in css.

    crazycellsC 1 Reply Last reply
    1
  • crazycellsC Offline
    crazycellsC Offline
    crazycells
    replied to phenomlab on last edited by
    #11

    @phenomlab said in How do I use other font awesome icons?:

    @crazycells it should be that you can control the switching between solid and light for example by using font-weight: 400; for light and font-weight: 900; for solid where you set the Unicode value in css.

    Thanks a lot.
    It worked with the change you said:

    span.votes {
        .fa-chevron-up {
            content: "\f164";
            font-weight: 400;
        }
    
        .upvoted .fa-chevron-up:before {
            content: "\f164";
            font-weight: 900;
        }
    }
    
    phenomlabP 1 Reply Last reply
    1
  • phenomlabP Offline
    phenomlabP Offline
    phenomlab
    replied to crazycells on last edited by
    #12

    @crazycells awesome. Thanks for coming back and letting me know.

    1 Reply Last reply
    1

Copyright © 2023 NodeBB | Contributors
  • Login

  • Don't have an account? Register

  • Login or register to search.
Powered by NodeBB Contributors
  • First post
    Last post
0
  • Home
  • Categories
  • Recent
  • Popular
  • Top
  • Tags
  • Users
  • Groups
  • Documentation
    • Home
    • Read API
    • Write API
    • Plugin Development