Unstoppable Domains โ€” Expired Auctions

Inserting title page?

SpaceshipSpaceship
Watch
Impact
0
Hi All....New to WebDesignTalk
My question is:
I have 15 pages to my website and the all have the same title header. Problem is when I need to make a change to the title header I have to make it to all 15 pages.
I thought about using "frames" to aviod this, but I have read numerous negative articles about using frames.
Is there an easier way?

Thanks for your help.
CLV
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
AfternicAfternic
Use PHP includes.

Put your header, html, in header.php for example.

Then, in all your files, put <?php include 'header.php'; ?> where you original header would be.
Then, whenever you need to make edits, just simply edit header.php :)

Adrian
 
0
•••
Adrian,
Thanks for your quick response. Forgive me for being a newbee, but could you explain PHP and how I would code that.
Thanks again for your help.
CLV
 
0
•••
1) create a html page like 'title.html'
This page code should look something like this:
Code:
<html>
<body>This Is My Title</body>
</html>

2) In your various pages, insert this in the title section:

Code:
<?php
include 'http://yourdomain.com/title.html';
?>

Naturally, you'd have to edit the above to reflect the actual URL of the 'title.html' file.

3) You must use the extension of .PHP on the pages that you want the 'include' to work.
 
Last edited:
0
•••
CatchedCatched
Escrow.com
Spaceship
Rexus Domain
CryptoExchange.com
Domain Recover
CatchDoms
NameMaxi - Your Domain Has Buyers
DomDB
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back