home visitor site owner
Loading
talk
. . .


link bb
. . .

Link BB on your website.


contact
. . .


If there are any problems or if you have questions or comments, please refer to the following:
Email: BeautifulBroken@hotmail.com
Contact Form: [ click here ]
tutorial
Repeating CSS Script

NOTE: This tutorial only works with PHP.

In this tutorial you will be learning how to make the same content repeat on every page. And instead of having to edit every single page when you want to make a change, you'll only have to edit one!

1. Find whatever you want to repeat on all pages. For most people it's the layout and CSS content; you know, header stuff.
Save it in a file on your computer with the name "header.php". Don't forget the ".php"! If you forget to put it, it will automatically save as a .txt file.

2. Upload your Header.php file onto your FTP client.

3. Type this in the < head > < / head > section of your layout. Be sure to add the space between the ; and the ?.:

4. The content of your Header.php should show up in the area of the layout in which you place the above code. Make sure you upload both the page you are put this code on as well as the Header.php. For Example: I want everything on my site except the content to appear on every page. I put all the stuff I want to repeat in my Header.php file, then place the code that is shown in number three in my layout where I want it to appear. I iwll then upload the Header.php, as well as the page(s) that will contain the code in number three.

5. You can make as many as these "shortcuts" as you want. Just be sure to give them all different names.

Liked this tutorial?
GIVE SUPPORT! Link us.
Still need help?
Feel free to send an email to BeautifulBroken@hotmail.com or use the Contact Page.

previous page