1
0
-1

Hello, everyone.

So I added icons for every menu. My problem is logged in user cannot see the icons. Only admin can.

The coding:

<i class="far fa-smile"></i>

<i class="fa fa-home"></i> 

View for logged in user and admin respectively. Can anyone tell me why this happens?

Thank you in advanced.

    CommentAdd your comment...

    1 answer

    1.  
      2
      1
      0

      Hi, this is because the icon you use is from the font awesome library. Not all theme are loaded this library by default. You are seeing it when you logged in as admin is because this library is loaded and used by the admin bar on the right side. In v5, only bootstrap, elegant &  janux theme loaded the font awesome library by default.

      You will need to manually include the library in your theme setting if using other themes.

      <link rel="stylesheet" href="/jw/js/font-awesome4/css/font-awesome.min.css">
      1. Nurul Akhmar

        Thank you, panda :)

      CommentAdd your comment...