Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Manasa 41 posts 161 karma points
    Jan 25, 2018 @ 17:04
    Manasa
    0

    Font awesome icons not displaying calculator

    Hello Everyone,

    I am using Font Awesome Icons dropdown for icons, all the icons are getting displayed except "Calculator". what could be the issue?

  • Nigel Wilson 945 posts 2077 karma points
    Jan 25, 2018 @ 17:20
    Nigel Wilson
    0

    Hi Manasa

    If other font awesome icons are displaying OK then prob best to post some code.

    Whilst technically your issue is not related to Umbraco, posting your code would be helpful in getting help...

    Nigel

  • Manasa 41 posts 161 karma points
    Jan 25, 2018 @ 18:10
    Manasa
    0

    Hello Nigel,

    Thanks for the reply, here is my code.

                            <h3>
                            <a class="btn btn-primary" style="width:100%;text-align: left;padding: 4% 10%;" href="@pageLink"><em class="fa [email protected]("displayIcon")"></em><span class="word-wrap">@link.GetValue("pageLinkName").ToString()</span></a>
                            </h3>
    
  • Nigel Wilson 945 posts 2077 karma points
    Jan 26, 2018 @ 05:10
    Nigel Wilson
    0

    Hi Manasa

    I would try doing it this way

    class="@string.Format("fa fa-{0}", link.GetValue("displayIcon"))"

    Hope this helps - if not then you'll need to debug your code to figure out why the value isn't coming through correctly.

    Cheers

    Nigel

Please Sign in or register to post replies

Write your reply to:

Draft