Search code examples
ruby-on-railsbootstrap-4glyphicons

ruby on rails and bootstrap 4


I am using Rails 5.1 and Bootstrap 4 to develop a website, now I want to add glyphicons to the website, but Bootstrap 4 doesn't have those anymore. This site provides glyphicons https://glyphicons.com/ but I do not know how to include them into the application. Can someone please explain to me how to do this, which files do I need to change or modify, which lines of code to use, or console commands if necessary, in order to use these glyphicons. Thank You!


Solution

  • The website does have an Examples of use section. Depending on which license you are looking can change how you use them in your app.

    If you are going to be using the Free version then you would have to download the zip file that contains all the icons as png's. Add these icons to your assets/images directory and you could then use an image_tag to display the icons.

    If you want to check out additional icons to use you can review the Icons section within the Bootstrap docs.