98.7% Of all customers recommend us, we're so confident about our results we publish all reviews and stats
View Live Stats View ReviewsForum home » Delegate support and help forum » Dreamweaver Training and help » Templates
Templates
Resolved · Medium Priority · Version 8
Gavin has attended:
Dreamweaver 8 Introduction course
Dreamweaver 8 Intermediate course
Templates
I want to be able to change the keywords/metas and page titles on my site, but as all pages are part of the template i can't.....is there a way to do this??
RE: Templates
Hi Gavin.
Yep, there is. You basically have an Editable Region amongst your HEAD tags.
eg.
<html>
<head>
<!-- InstanceBeginEditable name="doctitle" -->
<title>The Page Title</title>
<!-- InstanceEndEditable -->
<!-- InstanceBeginEditable name="head" -->
<meta name="description" content="insert description here">
<meta name="keywords" content="insert keywords here">
<!-- InstanceEndEditable -->
</head>
<body>
...
In your template, go to code view, click where you want to insert your editable region (within HEAD tags) and go to Insert -> Template Objects -> Insert Editable Region (or similar menu command, depends on your dreamweaver version).
You should then move the META tags (description and keywords) into the editable region, save your template, and update all your pages.
The above code example also shows an editable region for your document title. You could also have the TITLE tag within just the one editable region, but I prefer to use two. Dreamweaver sets this up by default when you make a new template from scratch.
Remember to always backup your local directory before doing changes like this, just in case something goes wrong.
Hope this helps.
Regards, Rich
Training information:
Welcome. Please choose your application (eg. Excel) and then post your question. Our Microsoft Qualified trainers will then respond within 24 hours (working days). Frequently Asked Questions
Any suggestions, questions or comments? Please post in the Improve the forum thread. |
Dreamweaver tip:Css stylesIf you are looking for a CSS style for your website / web page and not sure what you want to use, then go to the Csszengarden website, where you can download samples to try. |