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 8406049
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T22:59:34+00:00 2026-06-09T22:59:34+00:00

Until now, I’ve been using the <iframe> tag to load things like headers/footers/navbars into

  • 0

Until now, I’ve been using the <iframe> tag to load things like headers/footers/navbars into my webpage. These cause so much hassle though and as I’m about to start building a new site I thought I’d get it sorted now.

I was thinking of having all the html code in a php file and just loading it in dynamically.. Ideally I’d like the code to become a part of the page. So it appears inline. But I also want to be able to edit one single file if I need to change one bit rather than editing the same file 100 times.

<iframe>‘s did this well until recently and I don’t want to use workarounds to solve my problems. Could someone please post some code I could adapt or post a link to something that tells me how to do this? Cheers

  • 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-09T22:59:35+00:00Added an answer on June 9, 2026 at 10:59 pm

    You can use PHP’s include() function to include elements like headers and footers in your pages.

    So:

    include('header.php'); 
    

    . . . will look for a file called header.php in the same directory and include it in your page. Then you just need to write this at the top of your pages.

    That said, this isn’t really a very good way to go about designing your site. How about looking for a content management system, that allows you to keep the design and content of your site separate?

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

Sidebar

Related Questions

I have been using the load function until now to load my space separated
Until now I've been used to using DAOs to retrieve information from databases. Other
I'm learning scheme and until now have been using guile. I'm really just learning
Until now, I've been using acts_as_taggable_on plugin for tagging announcements. That plugin creates the
Up until now I've been deploying Rails apps to our Apache/Passenger setup using a
Up until now I've only been using orchestrations in my BizTalk application and it's
Until now I've been using Indy 10 without issues but after recent problem with
Until now I have been using XML parsing in my application, but I recently
Up until now I have been using: xmlhttp.open(GET,server_script.php?q=+str,true); Thanks Edit: I am providing a
Until now, and I haven't used it much, I've been using the hasher found

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.