Sign in

How to add a fontawesone icon in the menu?

  • This topic has 3 replies, 3 voices, and was last updated 5 months, 2 weeks ago by .
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #8482
    Avatar photoseb_oi

    I would like to add fontawesone icons to each of the menu items on my site. what is the best way to do this?

    #8486
    Avatar photoTomasz Dziuda

    Hi,

    the best way (for performance) would be get icons which you need as SVG and prepare CSS classes which you will add to the menu items (you can do it in the menu editor).

    --
    Do you appreciate the support you've received today? If so, consider donating to the Publii team by clicking here; we'll be sure to use your donation to make Publii even better!

    #8963
    Avatar photoJOduMonT

    FontAwesome is nice, but as Tomasz mentioned, it could make your website heavy by loading unnecessary code.

    I lot; of project target specific icon from font awesome and push them has .svg which limit the end user choice.

    I, personally, add Emoji instead

    #8965
    Avatar photoseb_oi

    Thank you both for your response. Both options are valid, for most projects I also use emojis.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.