skip to Main Content

I’ve set up my kit correctly on my index.html

<script src="https://kit.fontawesome.com/a*******5.js" crossorigin="anonymous"></script>

Some icons are working, others not.

<i class=" fa fa-search"></i> --------------> WORKS!

<i class="fa-solid fa-square-envelope"></i> --------> NOT WORKING! 

It only shows a square, I’ve tried resseting css styles, changing colors, etc.

2

Answers


  1. There might be a problem with the import of your icon. Double-check if you included 'fa-solid' correctly. Or the prefix might be causing the issue try: <i class="fas fa-square-envelope"></i>.

    Login or Signup to reply.
  2. If you are using FA version 5 or lower, the envelope icon name is fa-envelope-square. It changed to fa-square-envelope in version 6.

    Source

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search