Dreamweaver Templates: editable region in the head


Templates: editable region in the head



Recent versions of Dreamweaver automatically create two editable regions in the head of a template. The first is called "doctitle", and should contain only the <title> tag like this:

<!-- TemplateBeginEditable name="doctitle" --> <title>Your Page Title Goes Here</title> <!-- TemplateEndEditable -->


The second is called "head", and goes just before the closing </head> tag. It looks like this:

<!-- TemplateBeginEditable name="head" --> <!-- TemplateEndEditable --> </head>

Use this second editable region to add keywords, description, and other <meta> tags, as well as links to external style sheets and JavaScript files. By default there is nothing between the two template comment tags, so it's easy to miss.


If you are using an old version of Dreamweaver, you need to add the "head" editable region manually to the main template file. Just copy and paste the two lines shown above immediately before the closing </head> tag.

No comments:

Powered by Blogger.