sort icons not showing with Bootstrap 4

sort icons not showing with Bootstrap 4

Omar645Omar645 Posts: 3Questions: 1Answers: 0
edited January 2019 in Free community support

Hi, I need a help please. I am not getting sort icons displayed. Please assist. When I used this link <link rel="stylesheet" href="css/dataTables.bootstrap.min.css"> in the head section I am getting square images as sorting icons as per attached image. But when I use <link rel="stylesheet" href="css/dataTables.bootstrap.min.css"> the sorting icons disappear. Please assist. ![]( /0t/liwcx2msj7ur.png "")
<!DOCTYPE html>
<html lang="en">
<meta charset="UTF-8">
<title>jQuery Data Table</title>
<link rel="stylesheet" href="" integrity="sha384-GJzZqFGwb1QTTN6wy59ffF1BuGJpLSa9DkKMp0DgiMDm4iYMj70gZWKYbI706tWS" crossorigin="anonymous">
<link rel="stylesheet" href="css/dataTables.bootstrap.min.css">
<link href="//" rel="stylesheet">


<?php //echo "live"; $conn = new mysqli ('localhost', 'root', '', 'jquerydatatable'); $sql = $conn->query('SELECT * FROM country'); while($data = $sql->fetch_array()){ echo ' '; } ?>
ID Country Name Country Code
' .$data['id'].' ' .$data['name'].' ' .$data['countryCode'].'

$(document).ready(function(){ $(".table").DataTable(); });


This question has an accepted answers - jump to answer


  • Omar645Omar645 Posts: 3Questions: 1Answers: 0

  • colincolin Posts: 8,995Questions: 0Answers: 1,500
    Answer ✓

    Hi @Omar645 ,

    This thread here should help. If not, we're happy to take a look, but as per the forum rules, please link to a test case - a test case that replicates the issue will ensure you'll get a quick and accurate response. Information on how to create a test case (if you aren't able to link to the page you are working on) is available here.



  • Omar645Omar645 Posts: 3Questions: 1Answers: 0

    Thank you Colin. That thread helped. I used bootstrap 4 nightly version and worked for me.

This discussion has been closed.