materializecss-frameworksionicons

Ionicons not showing up in Materialize


I'm trying to use Ionicons in buttons of Materialize but it isn't showing up instead I'm getting an odd box.

<!DOCTYPE html>
<html lang="en">

<head>
    <title>Materialize</title>
    <link rel="stylesheet" type="text/css" href="css/materialize.min.css">
    <link rel="stylesheet" type="text/css" href="css/ionicons.min.css">
    <meta name="viewport" content="width=device-width,initial-scale=1.0" />
</head>

<body>
    <script type="text/javascript" src="https://code.jquery.com/jquery-
    2.1.1.min.js"></script>
    <script type="text/javascript" src="js/materialize.min.js"></script>
    <a class="btn btn-floating btn-large cyan pulse"><i class="ion-social-
    facebook"></i></a>
    <a class="btn btn-floating btn-large cyan pulse"><i class="ion-social-
    twitter"></i></a>
</body>

<html>

This is what I'm getting -

enter image description here


Solution

  • Please tell me that you're not actually splitting the rows in the mid of a class name... and that you hope everything works...

    <!DOCTYPE html>
    <html lang="en">
    <head>
      <title>Materialize</title>
      <link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0-alpha.3/css/materialize.min.css">
      <link rel="stylesheet" type="text/css" href="https://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css">
    
      <meta name="viewport" content="width=device-width,initial-scale=1.0" />
    </head>
    
    <body>
      <script type="text/javascript" src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
      <script type="text/javascript" src="js/materialize.min.js"></script>
      <a class="btn btn-floating btn-large cyan pulse"><i class="ion-social-facebook"></i></a>
      <a class="btn btn-floating btn-large cyan pulse"><i class="ion-social-twitter"></i></a>
    </body>
    

    result:

    enter image description here