How can I use an HTML template to modify all my pages, by only modifying that file?
-
I have my own website (slammertech.uphero.com hosted on 000webhost.com) that I started recently. I've gotten the basic design layout down, but occasionally I like to tweak it a little bit. Right now, that's not too much of a problem because I have less than 10 pages, and it doesn't take too long to go through and modify all those pages individually with small changes. But I know that eventually this task will become annoying and take a lot of time as I add more and more pages. So I thought it would be nice to be able to make a template that contains my basic site layout, and then just edit that every time I want to make a change. Problem is, I don't know how I can set the rest of my pages to follow that template. I don't even know where to begin to do something like this. I basically want all of my pages to load different parts of the HTML code from a single file into different parts of each pages code. Either that or get a program that can make mass edit each page file with the same changes. Hopefully that makes sense. Here's the catch: I'm coding my entire site manually from scratch using html and css (and javascript later on, once I learn it), using notepad++. I'm not using Dreamweaver or any other programs to make it, I'm doing it by writing my own html. (Yes, this is on purpose; I want to be capable to do it that way, and it lets me practice as I learn how to code) So I guess I'm not above using a separate program to help me strictly with this template issue, but it needs to be able to it without forcing me to use the whole program for designing everything. In other words, it needs to be able to let me use just the template aspect, and still let me continue making my actual site info in notepad++. Basically. Does anyone know how I can do this? Thanks.
-
Answer:
Notepad++ is a developer's best friend, I know. If you're not going to be using an integrated suite that supports templates when developing your site, you'll need to do the translation of data + template = webpage on your server instead. You'll be limited in choice by what your hosting provider allows, since template engines are based on programming languages such as PHP or Perl, and not all providers offer support for all languages. You might want to read the Wikipedia page about template systems or template engines. There is a lot of information there and a lot of different options.
Adam at Yahoo! Answers Visit the source
Other answers
With Dreamweaver you can have templates and still manually code html and css like you do it in notepad++. You could also manually create a template system by using includes (SSI or php include). Put every template part of your website in a seperate file and include them in every page. (Your content page will include for example separate files with code for header, sidebar and footer.)
you want to use CSS cascading style sheets. it is a file you will modify to tweak color or box locations you can then just call the style sheet from the html pages a single tag line will do it. http://www.csszengarden.com/ The site above is a good place to start. It is fairly easy stuff since you already do html tags
Related Q & A:
- How can I use SSL with django?Best solution by Stack Overflow
- How can I use XMP in Sharepoint metadata?Best solution by Stack Overflow
- How can I use mongo-sync?Best solution by github.com
- How can I split an HTML element?Best solution by Stack Overflow
- How can I add a HTML code to My Yahoo homepage?Best solution by Yahoo! Answers
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.