Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8817371
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T04:49:53+00:00 2026-06-14T04:49:53+00:00

I have downloaded a bootstrap template for a website, and Im trying to learn

  • 0

I have downloaded a bootstrap template for a website, and Im trying to learn how it all works. Looks good so far, but the template I have downloaded has much of the same content across the 5 main pages, and it is not generated or referred to from a single place. Since the navbar is the same across all the webpages, how could I refer all of the pages to include the same header (or other html), without a server side? This seems like a simple HTML or JS solution, just can’t seem to find what I’m looking for….

Lets say this is the navbar (saved as /component/navbar.html ¿maybe?):

<div class="navbar">
        <div class="navbar-inner">
            <div class="container">
                <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </a>
                <a class="brand" href="index.html">
                    <b>Your</b>Site
                </a>
                <div class="nav-collapse fr">
                    <ul class="nav">
                        <li><a href="index.html">Home</a></li>
                        <li class="active"><a href="work.html">Our work</a></li>
                        <li><a href="about.html">About us</a></li>
                        <!-- <li><a href="plans.html">Pricing</a></li> -->
                        <li><a href="explore.html">Explore</a></li>
                        <li><a href="faq.html">FAQ</a></li>
                        <li><a href="alt.html">Alt</a></li>
                        <li><a href="contact.html">Contact</a></li>
                        <li><button class="btn btn-primary">Sign In</button></li>
                    </ul>
                </div><!--/.nav-collapse -->
            </div><!-- end .container -->
        </div><!-- end .navbar-inner -->
    </div><!-- end .navbar -->

How do I link the pages to this piece of HTML to be included?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T04:49:54+00:00Added an answer on June 14, 2026 at 4:49 am

    You can do it with jQuery, always present in boostrap.

    Port the content inside <div class="navbar"> to a file as you suggest called /component/navbar.html – so the HTML looks like this

    <div class="navbar" id="navbar"> 
    </div>
    

    in a script, load the content from navbar.html into #navbar via AJAX

    $(document).ready(function(){
        $.ajax({
            url : 'component/navbar.html',
            success(html) {
                $("#navbar").html(html);
            }
        });
    });
    

    Edit : or simply $("#navbar").load('component/navbar.html');
    This is maybe the solution you are looking for, it behaves more like a kind of “include” you can place in the headers.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have downloaded ajax control toolkit (newest) and trying out fileupload. It's really good
i have downloaded a website using HTtrack wepsite copier. All files are downloaded to
have downloaded page by webbrowser and need to get mail address. But it is
I have downloaded a Java 3d-1_5_1-macosx.zip. I am trying unzip the file. The file
I have downloaded follwing code from one of Google Codes but problem is in
I have downloaded nmap. As far as I know, it supports the 'whois' tool.
I have downloaded a file WINDOWS POWERSHELL that has an .msu extension how do
I downloaded the bootstrap template from http://www.initializr.com/ My question is how do I keep
I have downloaded the Android SDK(which i think has no version, it is standard).
I am trying to build boost with MinGW and have downloaded boost 1.45 and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.