Chopping the header and footer out of my CSS layout to be used as PHP includes.
Anyways, I've built the home page of the site. Here it is. Now I need to figure out how to take the header and footer out, and put them in PHP files so that they will work as includes, for the obvious reasons.
So a couple of questions I have are:
- Does a PHP file have to start with <html> or anything like that or is it just the code. For example, if I wanted my header.php to just be "Touchstone Ranch" in H1 format, would the entire php file just be the <H1> tags and text?
- Will I need to include the CSS into my header and footer php files or will it get added automatically through the page, as it will have the CSS include.
I thought that maybe I could just cut the whole #header div out of the index page, place it in my header.php, include it and it would work. But for some reason it did not. So I need to know how to take it out and make it work properly.
-
Neodism -
Thanks
SignatureFree Web Design from Neodism.{{ DiscussionBoard.errors[5206124].message }} -
-
robinhoodtech -
Thanks
{{ DiscussionBoard.errors[5206659].message }} -