Fontawesome not working for Me →

I am loading this →

<script src="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css"></script>

in my head section still the Fontawesome is not working →

This is the HTML Code →



<div>
                        <ul class="social-share">
                            <li><a href="#" class="social-share-fb">**<i class="fa fa-facebook" aria-hidden="true"></i>** Share on Facebook</a></li>
                            <li><a href="#" class="social-share-tw">Share on Twitter</a></li>
                            <li><a href="#" class="social-share-yt">Share on YouTube</a></li>
                        </ul>
                    </div>

This is unable to take the Fontawesome →

<i class="fa fa-facebook" aria-hidden="true"></i>

You are calling in the font awesome CSS file, why are you using <script> and not <link>?

Also is the page that’s calling this also HTTPS?

1 Like

Oh i realized the error.

No the p;age is not calling https, but it is on Localhost, after I used <link> it worked. Thanks!

2 Likes

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.