Jaded Catalyst Posted May 30, 2008 Posted May 30, 2008 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. 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
1337 Posted May 30, 2008 Posted May 30, 2008 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"; ?>
Jaded Catalyst Posted May 30, 2008 Author Posted May 30, 2008 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. =^^=
TroJan-X Posted June 4, 2008 Posted June 4, 2008 just so you know css is a great way to edit all of your pages at once...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now