Skip navigation
Currently Being Moderated

modify a template

Jun 19, 2012 11:07 AM

hi, I have DW CS3.  in the file menu I know we you can convert the file to another but how can you modify the html5 template?      

 
Replies
  • Currently Being Moderated
    Jun 19, 2012 11:30 AM   in reply to mindapolis

    Not sure I understand your question.  You can edit any HTML document in code view. 

     

    If you choose to use HTML5 doc types, you'll need to add a supporting script for older browsers. 

     

    <!--[if lt IE 9]>

    <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>

    <![endif]-->

     

    Also HTML5 syntax & tags are a little different from HTML4 and XHTML1.

    http://www.w3schools.com/html5/default.asp

     

     

    Nancy O.

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 19, 2012 1:23 PM   in reply to mindapolis

    Open your template.dwt file.

    Go to Modify > Page properties > Title/Encoding. 

    Change doc type to one that matches your coding skills. Hit OK. 

     

    Ctrl+S = Save template.  DW will ask if you wish to popluate changes to child pages.  Hit yes.

     

     

    Nancy O.

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 20, 2012 9:43 AM   in reply to mindapolis

    Try pasting this into a new document.  SaveAs TemplateName.dwt

     

     

    <!DOCTYPE HTML>

    <html lang="en">

    <head>

    <meta charset="utf-8">

    <!-- TemplateBeginEditable name="doctitle" -->

    <title>Untitled Document</title>

    <!-- TemplateEndEditable -->

    <!-- TemplateBeginEditable name="meta" -->

    <meta name="description" content="description goes here..." />

    <!-- TemplateEndEditable -->

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

    <script type="text/javascript"> </script>

     

    <link rel="stylesheet" href="    ">

     

    <style type="text/css">

    /**PAGE SPECIFIC STYLES GO HERE**/

    </style>

     

    <!--[if It IE 9]>

    <script src="http://html5shiv.googlecode-.com/svn/trunk/html5.js">

    </script>

    <![endif]-->

     

    <!-- TemplateEndEditable -->

    </head>

    <body>

    <header>Common Header</header>

    <aside>Common Aside</aside>

    <section>Common Section</section>

    <article>

    <!-- TemplateBeginEditable name="article" -->

    Article -- page specific content goes here....

    <!-- TemplateEndEditable -->

    </article>

    <section>Common Section</section>

    <footer>Common Footer</footer>

    </body>

    </html>

     

     

     

    Nancy O.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points