Copied to clipboard

Flag this post as spam?

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


  • Tom Bruce 122 posts 506 karma points
    Aug 25, 2017 @ 10:32
    Tom Bruce
    0

    Add glyphicon to the Nav bar

    How do you add glyphicon to the Nav bar? I have tried the following code, but the glyphicon doesn’t show.

    enter code<li><a href="/Home"><span class="glyphicon glyphicon-home"></span>Home</a></li> here
    
  • Micha Somers 134 posts 597 karma points
    Aug 25, 2017 @ 13:28
    Micha Somers
    100

    Hi Tom,

    Have you included the necessary bootstrap stylesheet and scripts in your template?

    Assuming you use bootstrap 3, you need something like this:

    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
    <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
    
Please Sign in or register to post replies

Write your reply to:

Draft