Highlighted

How do i make a header/footer a template that updates all pages after I've designed the website?

Community Beginner ,
Apr 13, 2020

Copy link to clipboard

Copied

I've made a responsive website and didn't make it an updated template. I need the header and footer to update all the pages I've already designed.

 

How do I make the header and footer a template that updates all the pages I've already designed???

 

Help!

Thanks

Topics

Code, How to

Views

590

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

How do i make a header/footer a template that updates all pages after I've designed the website?

Community Beginner ,
Apr 13, 2020

Copy link to clipboard

Copied

I've made a responsive website and didn't make it an updated template. I need the header and footer to update all the pages I've already designed.

 

How do I make the header and footer a template that updates all the pages I've already designed???

 

Help!

Thanks

Topics

Code, How to

Views

591

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Adobe Community Professional ,
Apr 13, 2020

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

 

Nancy O'Shea, ACP
Alt-Web.com

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Adobe Community Professional ,
Apr 13, 2020

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.


Paul-M, ACP - www.webspectrum.co.uk

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Adobe Community Professional ,
Apr 13, 2020

Copy link to clipboard

Copied

A Single Page Application (SPA) is the easiest of all templates. 

 

BenPleysier_0-1586812509743.png

 

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


Ben
Enjoy the videos and music you love, upload original content, and share it all with friends, family, and the world on YouTube.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...