Answers for "Best way to load navigation bar on every page html and css"

1

navigation bar on more than one page

<!-- add in head: --> <script src="https://code.jquery.com/jquery-1.10.2.js"></script>

<!--Navigation bar-->
<div id="nav-placeholder">

</div>

<script>
$(function(){
  $("#nav-placeholder").load("nav.html");
});
</script>
<!--end of Navigation bar-->
Posted by: Guest on December-16-2020
0

navbar multiple pages

<!DOCTYPE html>
<html>
<head>
    <link rel="stylesheet" href="./bootstrap-3.3.2-dist/css/bootstrap.min.css">
</head>
<body>
    <div class="container">
        <@wpbModule externalKey="9255b083-95a3-4752-a4fd-5bad5ad57fc0" />
        <h2> Home page </h2>
        Dummy home page...        
    </div>
</body>
</html>
Posted by: Guest on November-14-2020

Code answers related to "Best way to load navigation bar on every page html and css"

Browse Popular Code Answers by Language