Jump to content

Recommended Posts

Posted

Sorry if this is in the wrong section. I just need some help.

 

So I'm a bit on the computer illiterate side, and I'm only knowledgeable about the very basics of HTML and CSS, so please try to dumb down the language for me. :wacko:

 

So I want to be able to global headbars and sidebars and stuff so that I can place them on many pages, but only have to edit one file. Instead of having to go into every single page and changing the HTML, I want to be able to change one file and have those changes appear on all the others. I know there are ways to do this, but I don't know which one to use and what works best.

 

Thanks!

 

-JC

Posted

PHP include.

 

Rename all pages to .php, and create a header.php and footer.php and place your header and footer in those, respectively.

 

Then, at the top of every page, add:

<?php
include "header.php";
?>

 

and at the bottom..

 

<?php
include "footer.php";
?>

Posted

Thanks. It works great.

 

But I'm wondering if they're a way to do it with HTML instead of PHP since I'm more familiar with it and the HTML editor.

 

 

Edit: Nevermind. I figured it out myself. Thanks for the help, though. =^^=

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...