Simple template using php, html and css

What do I need?

In addition, basic knowledge on computers and how to edit html, php and css is a good thing to have. You will not be able to run this site on your computer to test it out (experienced user will know how to though).

Getting started

First I will recommend simply opening all of the files by dragging them from the container folder an into Notepad++. Then have a look around and see if you can figure out what all the lines of text are for and how the pages relate to one another, to get basic understanding of php, html and css.

You will notice that by using the php-function include/require you can fetch html-files, and like this you can edit the navigation bar in the top and the sidebar on the right. It does not stop there though, theoretically you can fetch any part of the website using this method.

Edit the files on your computer and upload them to your website using your FTP client, FileZilla supports drag'n'drop.

Adding more pages

To add another page, to your site, you must create an additional php-file and place it in your root directory, and a html-file which should be placed in the sub-directory.

The php-file you can copy the index.php and change the value "home.html" to "yournewpagename.html", and we are done here.

For the html-file, all you have to do is start your file with

<div id="main"> and end it with </div> YOU MUST DO THIS ON EVERY PAGE or the layout will mess up.

FAQ

No questions asked yet. Please submit questions by contacting me on twitter or by using the forum.

You have reached Makey.biz