#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2003
    Posts
    95
    Rep Power
    12

    Question Dreamweaver Template issue


    I have an old site that I am updating and there are 2 dreamweaver templates (one for home page and one for all other pages) that control all the pages. The top of both templates is identical and looks like this
    Code:
    <!DOCTYPE html>
    <!--[if lt IE 7 ]><html class="ie ie6" lang="en"> <![endif]-->
    <!--[if IE 7 ]><html class="ie ie7" lang="en"> <![endif]-->
    <!--[if IE 8 ]><html class="ie ie8" lang="en"> <![endif]-->
    <!--[if (gte IE 9)|!(IE)]><!--><html lang="en"> <!--<![endif]-->
    <head>
    <meta charset="utf-8">
    <!-- TemplateBeginEditable name="doctitle" -->
    <title>Untitled Document</title>
    <!-- TemplateEndEditable -->
    <!-- TemplateBeginEditable name="MetaTags" -->
    <meta name="description" content="" />
    <meta name="keywords" content="" />
    <meta name="robots" content="index,follow,archive" />
    <!-- TemplateEndEditable -->
    
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    However when produce any pages and view them in IE7 and view the source the home page code looks like this
    Code:
    <!DOCTYPE html>
    <html lang="en"><!-- InstanceBegin template="/Templates/2014-home-page.dwt.asp" codeOutsideHTMLIsLocked="false" --> <!--<![endif]-->
    <head>
    <meta charset="utf-8">
    <!-- InstanceBeginEditable name="doctitle" -->
    <title>Untitled Document</title>
    <!-- InstanceEndEditable -->
    <!-- InstanceBeginEditable name="MetaTags" -->
    <meta name="description" content="" />
    <meta name="keywords" content="" />
    <meta name="robots" content="index,follow,archive" />
    <!-- InstanceEndEditable -->
    Where as the lower level pages include all the IE related comments around the html tag
    Code:
    <!DOCTYPE html>
    <!--[if lt IE 7 ]><html class="ie ie6" lang="en"> <![endif]-->
    <!--[if IE 7 ]><html class="ie ie7" lang="en"> <![endif]-->
    <!--[if IE 8 ]><html class="ie ie8" lang="en"> <![endif]-->
    <!--[if (gte IE 9)|!(IE)]><!--><html lang="en"><!-- InstanceBegin template="/Templates/2014-text-page.dwt.asp" codeOutsideHTMLIsLocked="false" --> <!--<![endif]-->
    <head>
    <meta charset="utf-8">
    <!-- InstanceBeginEditable name="doctitle" -->
    <title>Untitled Document</title>
    <!-- InstanceEndEditable -->
    <!-- InstanceBeginEditable name="MetaTags" -->
    <meta name="Description" content="" />
    <meta name="Keywords" content="" />
    <meta name="robots" content="index,follow,archive" />
    <!-- InstanceEndEditable -->
    Has anybody come across this issue before and can advise as to a solution?
  2. #2
  3. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2014
    Posts
    22
    Rep Power
    0
    Please describe your question in deep.
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2014
    Posts
    22
    Rep Power
    0
    Please describe your question in deep

IMN logo majestic logo threadwatch logo seochat tools logo