Copy link to clipboard
Copied
Copy link to clipboard
Copied
You don't. The Template creation process starts at the beginning of your project, not at the end. You already put your cart ahead of the horse, so Templates are not an option unless you want to re-build your site.
If your server supports PHP scripts, look at PHP server-side includes. They are much better than DW Templates for managing sitewide elements like navigation, headers and footers.
https://alt-web.blogspot.com/2015/07/server-side-includes-with-php.html
You will need to replace some code in your various pages with server-side include statements, but it won't take long with copy & paste.
https://alt-web.blogspot.com/2015/07/server-side-includes-with-php.html
Copy link to clipboard
Copied
Using PHP, put your header and footer content in two separate files for example header.php and footer.php then include the content in other PHP pages like this:
<?php include 'header.php'; ?>
I'd advocate this method over using the built in Dreamweaver template feature.
Copy link to clipboard
Copied
A Single Page Application (SPA) is the easiest of all templates.
This is where the Header and Footer always stay in place and the content gets drawn in as required. Search Google for SPA.
You could also have a look at https://github.com/Wappler/Starter-Boilerplate and an explanation at https://www.youtube.com/watch?v=7a0qE6yWyQM