PHP Includes
- First, make these files in your file manager: header.php and footer.php.- So let's start with the header.php file. This is the page where your whole layout stylesheet basically goes. So take your layout stylesheet code and put it in that file.
- Go all the way down until you find this. Remove (cut) that text and paste it in an open notepad document. Now put this above that code and this below that code. It should now look like this.
- That is what you put on all your files/ pages that you make, besides the header.php and footer.php files. All your pages also must end in .php for it to work. If it isn't, then change that now.
- Now for your footer.php file, just type in whatever you want to show up below your content on every page, onto that file. After doing that, save it and your done! It's much easier than putting the whole layout code on every page. It's kinda confusing at first, so if you didn't understand this tutorial then feel free to ask us about it and we'll try to clarify and explain as best as we can.
CupCake Layouts