• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

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

Community Beginner ,
Apr 13, 2020 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

887

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
community guidelines
Community Expert ,
Apr 13, 2020 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— Product User, Community Expert & Moderator
Alt-Web Design & Publishing ~ Web : Print : Graphics : Media

Votes

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
community guidelines
Community Expert ,
Apr 13, 2020 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 - Community Expert

Votes

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
community guidelines
Community Expert ,
Apr 13, 2020 Apr 13, 2020

Copy link to clipboard

Copied

LATEST

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

Wappler, the only real Dreamweaver alternative.

Votes

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
community guidelines