I am using Bootstrap 4. I would like to use Glyphicon in Datatable. I included font-awsome.
My CSS code is like below
table.dataTable thead .sorting::after, table.dataTable thead .sorting_asc::after, table.dataTable thead .sorting_desc::after, table.dataTable thead .sorting_asc_disabled::after, table.dataTable thead .sorting_desc_disabled::after {
content: "\e252" !important;
font-family: "Font Awesome 5 Free";
display: inline-block;
padding-right: 3px;
vertical-align: middle;
font-weight: 900;
}
But I am getting output like below
Font Awesome is missing the font files. If you look into the
font-awesome.css
file you will see it is expecting a fonts folder in its parent directory.Expected folder structure -