Inserting title page?

NamecheapNamecheap
SpaceshipSpaceship
SpaceshipSpaceship
Watch

CLVentures

New Member
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.
Unstoppable Domains — AI StorefrontUnstoppable Domains — AI Storefront
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
•••
Appraise.net

We're social

Escrow.com
Spaceship
Domain Recover
CryptoExchange.com
Catchy
DomDB
NameFit
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back