user786 — 2013-04-12T15:32:17-04:00 — #1
I have created my HTML website. It has 20+ pages. Now I want to place a banner on top of all pages. One option is to place that banner in every page one by one.
I know there is some other way by which I will be able to put the banner somewhere only once and then it will appear on all pages. I should have created a template first before starting to create html pages... but what can i do now. how to avoid putting the banner in every page, and put it in some place once so that it will appear in all pages where i want it?
avior — 2013-04-12T15:43:27-04:00 — #2
user786 — 2013-04-12T15:47:38-04:00 — #3
This is one method.. However in terms of website performance, it will be making website heavier, since the banner (which is an image) will be on every page. And if i decide to add more pages to my website like 20 or 30 more, this wouldn't be a good option.
Is there a way to create a template sort of thing if possible at this stage (when now I already have 20+ pages of my website) and marge that template with my website pages. In the template I can put the banner and set it at its right location?
felgall — 2013-04-12T18:49:32-04:00 — #4
You can use either server side includes (SSI with .shtml files) or a server side language such as PHP that allows you to include content into all of the pages of your site.