
I'm editing a footer that was created in frontpage about ten years ago. For some reason the links are all images.
None of the above.
The font is 12px Tahoma.
Thanks much. Now I just need to figure out if I have to edit the header and footer of every single page of this template or if there is a smarter way to do it.
I mean, why use a template at all if code is repeated on every godamned page?
The smarter way to do it is to use PHP includes and build only a single header and footer file for the entire site.
<html>
<head>
<title>Your title</title>
</head>
<body>
</body>
</html>
<? include('path/to/header.php'); ?>
<h1>Example using PHP includes</h1>
<p>A paragraph of text...</p>
<? include('path/to/footer.php'); ?>
<html>
<head>
<title>Your title</title>
</head>
<body>
<h1>Example using PHP includes</h1>
<p>A paragraph of text...</p>
</body>
</html>
Just to give an example:
header.php
Code:<html> <head> <title>Your title</title> </head> <body>
footer.php
Code:</body> </html>
index.php
Code:<? include('path/to/header.php'); ?> <h1>Example using PHP includes</h1> <p>A paragraph of text...</p> <? include('path/to/footer.php'); ?>
Will result in:
index.php (end user)
Code:<html> <head> <title>Your title</title> </head> <body> <h1>Example using PHP includes</h1> <p>A paragraph of text...</p> </body> </html>
Super simple, but just in case you didn't know![]()
If the site was created in FrontPage you might be able to make the change once and make it appear across all pages, providing you still have a copy of FrontPage.
They had some funky bots for include files - pages were compiled locally before uploading rather than on the server as normal.
Yes I know this. My problem is that I'm working with an existing site that already uses this redundant structure for some reason.
I want to make the header change with as minimal work as possible and it looks like a little selective cutting and pasting is the way I'll have to go.
It just irks me that a so called 'template' uses this structure.