How to install and use open-iconic with bootstrap 4 beta using CDN library?
Asked Answered
C

2

10

I have included below

<!-- Bootstrap 4.0 Beta -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.0.0-beta/css/bootstrap.min.css" integrity="sha256-m/h/cUDAhf6/iBRixTbuc8+Rg2cIETQtPcH9D3p2Kg0=" crossorigin="anonymous" />
<!-- open-iconic-bootstrap (icon set for bootstrap) -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/open-iconic/1.1.1/font/css/open-iconic-bootstrap.min.css" integrity="sha256-BJ/G+e+y7bQdrYkS2RBTyNfBHpA9IuGaPmf9htub5MQ=" crossorigin="anonymous" />

And used this as below with no luck

<span class="oi oi-icon-person" title="person" aria-hidden="true"></span>
Clytemnestra answered 11/9, 2017 at 5:41 Comment(0)
R
20

Use oi-person class instead of oi-icon-person:

<!-- Bootstrap 4.0 Beta -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.0.0-beta/css/bootstrap.min.css" integrity="sha256-m/h/cUDAhf6/iBRixTbuc8+Rg2cIETQtPcH9D3p2Kg0=" crossorigin="anonymous" />
<!-- open-iconic-bootstrap (icon set for bootstrap) -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/open-iconic/1.1.1/font/css/open-iconic-bootstrap.min.css" integrity="sha256-BJ/G+e+y7bQdrYkS2RBTyNfBHpA9IuGaPmf9htub5MQ=" crossorigin="anonymous" />

<span class="oi oi-person" title="person" aria-hidden="true"></span>
Rayshell answered 11/9, 2017 at 7:11 Comment(2)
What if I want to use it for offline purpose??Deandeana
Do you need the entire directory? font, png, sprite, svg, webp? Theres a lot of files in there.Ink
P
1

For installing Iconic manually, you need to create a CSS folder and move open-iconic-bootstrap.css file inside it.

If we open the file, we can see what we need exactly (src: url('../fonts/open-iconic.eot');). Just move fonts folder in ../ and it's working !

Panta answered 13/6, 2019 at 19:31 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.