13 Replies Latest reply on Jan 29, 2013 9:15 AM by Nancy OShea

    Adopted a Website! DW says head is locked. Detach from template not available!

    afrank89 Level 1

      I recently started remodeleing a website for a local business and I am trying to update some images and use slideshows. When I try to insert widget I get the "Required links could not be added to this file because the <head> tag is in a locked region." error.  I have recently started using DW again after quite some time. Am I missing something here. I could not find a template file on the server and when I go to detatch from template the option is not available like it is not using a template. Please help. I am trying to add widget to this page:

       

      http://www.bigbearhideaway.com/blackbear.php

       

      It seems the pages get all of their attributes from here:

       

      http://www.bigbearhideaway.com/header.html

       

       

      ANY help is much appreciated!

        • 1. Re: Adopted a Website! DW says head is locked. Detach from template not available!
          BenPleysier Adobe Community Professional & MVP

          In your document remove all reference to templates and save the document.

           

          Instead of using DWT, use PHP's include file instead.

          1 person found this helpful
          • 2. Re: Adopted a Website! DW says head is locked. Detach from template not available!
            afrank89 Level 1

            I removed anything about a template in the header.html but it did nothing from what I see the pages are already using <?php include("header.html"); ?>. Any input?

            • 3. Re: Adopted a Website! DW says head is locked. Detach from template not available!
              Ken Binney Adobe Community Professional & MVP

              I'm in complete agreement with Gramps, and while you are rearranging things, be sure to repair all your links to your local computer (they start with file://C/

               

              <link href="file:///C|/Users/afrankng/AppData/Roaming/Adobe/Dreamweaver CS6/en_US/Configuration/Temp/Assets/eam53A0.tmp/css/lightbox.css" rel="stylesheet" type="text/css" />

              <link href="file:///C|/Users/afrankng/AppData/Roaming/Adobe/Dreamweaver CS6/en_US/Configuration/Temp/Assets/eam53A0.tmp/css/sample_lightbox_layout.css" rel="stylesheet" type="text/css" />

              <script src="file:///C|/Users/afrankng/AppData/Roaming/Adobe/Dreamweaver CS6/en_US/Configuration/Temp/Assets/eam53A0.tmp/scripts/jquery.js" type="text/javascript"></script>

              <script src="file:///C|/Users/afrankng/AppData/Roaming/Adobe/Dreamweaver CS6/en_US/Configuration/Temp/Assets/eam53A0.tmp/scripts/lightbox.js" type="text/javascript"></script>

               

              And visitors hate horizontal scrollbars that push one third of your content off the right side of the screen/viewport

               

              afrank.jpg

              1 person found this helpful
              • 4. Re: Adopted a Website! DW says head is locked. Detach from template not available!
                afrank89 Level 1

                I feel idiotic however how would I "repair all my links"? I am sorry if I am wasting anyones time.

                • 5. Re: Adopted a Website! DW says head is locked. Detach from template not available!
                  afrank89 Level 1

                  This is the exact error I am receiving:

                   

                  While executing onLoad, the following JavaScript error(s) occurred:

                   

                  At line 252 of file “C:\Program Files (x86)\Adobe\Adobe Dreamweaver CS6\Configuration\Commands\InsertOAWidget.html”: Required links could not be added to this file because the <head> tag is in a locked region. To insert this content, open the template file” and either unlock the <head> tag or add this content to the template.

                   

                  I am trying to add FlexSlider.

                   

                  Thanks

                  • 6. Re: Adopted a Website! DW says head is locked. Detach from template not available!
                    Nancy OShea Adobe Community Professional & MVP

                    Open Template.dwt file in Code View.

                    Scroll down to just above the </head> tag.

                    Go to Insert > Template > Editable Region.

                    Name it "head'

                     

                    Code should resemble this:

                         <head>

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

                              <!-- TemplateEndEditable -->

                         </head>

                     

                    Save Template.

                     

                    Nancy O.

                    • 7. Re: Adopted a Website! DW says head is locked. Detach from template not available!
                      afrank89 Level 1

                      Here is my issue I have no .dwt file. From what I can tell it is pulling everything from the header.html using <?php include("header.html"); ?>.

                       

                      Now the <head> header.html code is as follows:

                       

                      <head>

                      <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

                      <meta http-equiv="description" name="description" content="Big Bear Hideaway offers log and stone year-round vacation cabins in Boulder Junction, Wisconsin 54512.">

                      <meta http-equiv="keywords" name="keywords" content="big bear hideaway, boulder junction, wisconsin, log, stone, year-round, vacation, cabins, retreat, lodging, wood carvings, masterpiece, weddings, reunions">

                      <style type="text/css">

                      /*Layout divs*/

                      /*this container centers the content in the browser and fixes the overall width*/

                      #wrapper {

                                width: 1036px;

                                margin: 0 auto;

                                text-align: left;

                                color: #200133;

                                line-height: 1.3em;

                                background-color: #f3e1b9;

                                border: thick solid #000000;

                      }

                      /* this coantainer holds the individual text boxes in the left-hand column*/

                      #holderdiv {

                                width: 185px;

                                padding-right: 3px;

                                padding-left: 3px;

                      }

                      /* this coantainer holds the heading graphic*/

                          #header {

                                background: #000000;/*themecolour3;*/

                                height: 171px;

                                margin: 0px;

                                }

                      /*this container holds the horizontal navigation */

                                #navbar {

                                background-color: #F3E1B9;/*themecolour4;*/

                                width: 100%;

                                top: 50px;/*themecolour5;*/

                                background-repeat: repeat;

                                border-bottom-color: #392A13;

                                border-bottom-width: 3px;

                      }

                      /*this container holds the logo graphic */

                      #logo {

                                background-repeat: no-repeat;

                                height: 80px;

                                top: 0px;

                                right: 0px;

                                width: auto;

                                margin-right: 0px;

                                margin-left: 0px;

                      }

                      /*the individual text boxes in the left-hand column */

                      .leftcoldiv {

                                margin: 5px 5 5px 0;

                                background-image:   url("Traveller_page3_files/Traveller_page3_columnbg2.gif");

                                background-repeat: repeat;

                      }

                      /*styles the footer */

                      .footer {

                                font-size: 70%;

                                color: #6f2d07;/*themecolour1$ 0.6%,-40.3%;*/

                                border-top-width: 1px;

                                border-top-style: solid;

                                border-top-color: #c45e24;/*themecolour1$ 13.0%,15.2%;*/

                                padding-bottom: 10px;

                                text-align: center;

                      }

                       

                       

                      /*HTML tag styles*/

                      /*this defines the font style and color*/

                          body {

                                font: 100%/1.5em georgia, times, serif;

                                color: #392A13;

                                text-align: center;

                                background-color: #392A13;

                                padding-top: 5px;

                                padding-bottom: 20px;

                                background-repeat: repeat;

                                background-image: url(images/New/fur.jpg);

                                margin-top: 8px;

                      }

                      /*paragraph styles*/

                      #wrapper p {

                                margin-top: 0px;

                                margin-bottom: 0px;

                                padding-right: 8px;

                                padding-left: 8px;

                                font-size: 80%;

                      }

                      .leftcoldiv p {

                                margin: 0px;

                                padding: 8 5 0;

                                color: #000000;/*themecolour4;*/

                                font-size: 90%;

                                line-height: 1.3em;

                      }

                      /*sets margins to 0*/

                          p {

                                margin-top: 0px;

                                margin-bottom: 0px;

                      }

                      /*floats element to the left*/

                          .left {

                                float: left;

                      }

                      /*floats element to the right*/

                         .right {

                                float: right;

                      }

                      /*style the heading text*/

                      h1 {

                                font-size: 120%;

                                margin: 0px 0px 0px 20px;

                                color: #000000;/*themecolour4;*/

                                padding-top: 10px;

                                padding-left: 4px;

                                font-family: Verdana, Arial, Helvetica, sans-serif;

                                font-weight: normal;

                                padding-bottom: 5px;

                      }

                       

                       

                      h2 {

                                font-size: 80%;

                                color: #6f2d07;/*themecolour1$ 0.6%,-40.3%;*/

                                margin-top: 4px;

                                margin-bottom: 6px;

                                font-family: Verdana, Arial, Helvetica, sans-serif;

                                padding-left: 6px;

                                font-weight: bolder;

                                padding-bottom: 2px;

                                padding-top: 2px;

                                margin-left: 10px;

                                margin-right: 15px;

                                border-bottom-width: 1px;

                                border-bottom-style: dashed;

                                border-bottom-color: #c44d0a;/*themecolour1$ -13.0%,15.2%;*/

                                background-color: #e8d19f;/*themecolour2$ -10.1%,-4.6%;*/

                      }

                       

                       

                      h3 {

                                font-size: 80%;

                                color: #dfc07d;/*themecolour2$ -26.2%,-8.4%;*/

                                margin-top: 4px;

                                margin-bottom: 6px;

                                font-family: Verdana, Arial, Helvetica, sans-serif;

                                padding-left: 6px;

                                font-weight: bolder;

                                padding-bottom: 2px;

                                padding-top: 2px;

                                margin-left: 10px;

                                margin-right: 10px;

                                border-bottom-width: 1px;

                                border-bottom-style: solid;

                                border-bottom-color: #000000;/*themecolour4;*/

                                background-image:   url("Traveller_page3_files/Traveller_page3_columnbg2.gif");

                                background-repeat: repeat;

                      }

                       

                       

                      h4 {

                                font-size: 80%;

                                color: #6f2d07;/*themecolour1$ 0.6%,-40.3%;*/

                                margin-top: 4px;

                                margin-bottom: 6px;

                                font-family: Verdana, Arial, Helvetica, sans-serif;

                                padding-left: 6px;

                                font-weight: bolder;

                                padding-bottom: 2px;

                                padding-top: 2px;

                                margin-left: 10px;

                                margin-right: 15px;

                                border-bottom-width: 1px;

                                border-bottom-style: dashed;

                                border-bottom-color: #c44d0a;/*themecolour1$ -13.0%,15.2%;*/

                                background-color: #e8d19f;/*themecolour2$ -10.1%,-4.6%;*/

                      }

                       

                       

                      h5 {

                                font-size: 80%;

                                color: ##dfc07d;/*themecolour2$ -26.2%,-8.4%;*/

                                margin-top: 4px;

                                margin-bottom: 6px;

                                font-family: Verdana, Arial, Helvetica, sans-serif;

                                padding-left: 6px;

                                font-weight: bolder;

                                padding-bottom: 2px;

                                padding-top: 2px;

                                background-image:   url("Traveller_page3_files/Traveller_page3_columnbg2.gif");

                                margin-left: 10px;

                                margin-right: 15px;

                                background-repeat: repeat;

                                border-bottom-width: 1px;

                                border-bottom-style: solid;

                                border-bottom-color: #000000;/*themecolour4;*/

                      }

                      .leftcoldiv h2 {

                                margin: 0;

                                background-color: #ba4a0b;/*themecolour1;*/

                                color: #dfc07d;/*themecolour2$ -26.2%,-8.4%;*/

                                font-size: 90%;

                                padding: 3px 5px 3px 10px;

                                border-bottom-width: 1px;

                                border-bottom-style: solid;

                                border-bottom-color: #000000;/*themecolour4;*/

                                background-repeat: repeat;

                                font-weight: bolder;

                                background-image:   url("Traveller_page3_files/Traveller_page3_h2bg.gif");

                                font-family: Verdana, Arial, Helvetica, sans-serif;

                      }

                      /*defines the style for ordered lists (numbered) */

                      ol {

                                margin-top: 0px;

                                margin-bottom: 0px;

                                margin-left: 25px;

                                color: #000000;/*themecolour4;*/

                      }

                      /*defines the style for unordered lists (bulleted) */

                      ul {

                                margin-top: 0px;

                                margin-bottom: 0px;

                                list-style-image:   url("Traveller_page3_files/Traveller_page3_bullet.gif");

                                color: #200133;

                                font-size: 80%;

                                font-weight: normal;

                                margin-left: 20px;

                                padding-left: 20px;

                                line-height: 1.3em;

                      }

                      /*link styles*/

                      a:link {

                                color: #ba4a0b;/*themecolour1;*/

                      }

                      a:visited {

                                color: #3a1703;/*themecolour1$ -21%,-68.6%;*/

                      }

                      a:link:hover {

                                color: #572205;/*themecolour1$ -12.5%,-53%;*/

                      }

                      /*defines the style for horizontal dividers */

                      .divider {

                                border-top-width: 1px;

                                border-top-style: solid;

                                border-top-color: #000000;/*themecolour4;*/

                      }   

                      .style1 {font-size: 100%}

                      #Main {

                        margin-left: none;

                      }

                       

                       

                      #Content1 {

                        width: 400px;

                        height: 300px;

                        margin-left: none;

                        border: none;

                        font-weight: bold;

                      }

                       

                       

                      #box1, #box2, #box3, #box4, #box5 {

                        display: none;

                      }

                       

                       

                      a {

                        outline: none;

                      }

                       

                       

                      img {

                        border: none;

                      }

                       

                       

                      body,td,th {

                                font-family: Verdana, Arial, Helvetica, sans-serif;

                      }

                      -->

                      </style>

                      <script type="text/javascript" src="contentDisplay.js"></script>

                      <script type="text/javascript" src="imageGallery.js"></script>

                      <script type="text/javascript" src="popupBox.js"></script>

                      <script language="JavaScript">

                      <!--

                      function MM_findObj(n, d) { //v4.01

                        var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {

                          d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}

                        if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];

                        for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);

                        if(!x && d.getElementById) x=d.getElementById(n); return x;

                      }

                      //-->

                      </script>

                       

                       

                      <script language="JavaScript">

                      <!--

                      hide

                      function MM_findObj(n, d) { //v3.0

                        var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {

                          d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}

                        if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];

                        for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); return x;

                      }

                       

                       

                      function MM_swapImage() { //v3.0

                        var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)

                         if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}

                      }

                       

                       

                      // stop hidin

                      //-->

                      </script>

                      <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

                      <title>Big Bear Hideaway</title>

                      <script type="text/xml">

                      <!--

                      <oa:widgets>

                        <oa:widget wid="2127022" binding="#gallery" />

                      </oa:widgets>

                      -->

                      </script>

                      <link rel="shortcut icon" href="images/new/bbfavicon.ico" type="image/x-icon" />

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

                      <!-- TemplateEndEditable -->

                      </head>

                      • 8. Re: Adopted a Website! DW says head is locked. Detach from template not available!
                        Ken Binney Adobe Community Professional & MVP

                        I apologize -

                        We have all been asssuming that your site was built on a DW template.- it is NOT

                         

                        As you indicated a while back, the site is already using a server side include.

                         

                        All I can see wrong now, is that the header.html include file does have.a scrap of template code at lines 315-316. Remove them both and you should be fine.

                         

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

                        <!-- TemplateEndEditable -->

                        </head>

                        • 9. Re: Adopted a Website! DW says head is locked. Detach from template not available!
                          Nancy OShea Adobe Community Professional & MVP

                          I see.  It looks like a disected Template because your header include contains this:

                           

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

                          <!-- TemplateEndEditable -->

                          </head>

                           

                          So at some point, this site was built with Templates. 

                           

                          Nancy O.

                          • 10. Re: Adopted a Website! DW says head is locked. Detach from template not available!
                            afrank89 Level 1

                            I put this in because I was instructed to by Nancy O.

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

                            <!-- TemplateEndEditable -->

                             

                            It was not working before I put that in and it still isn't allowing me to put in a widget now that I took it out. It still says that the region is locked.

                            • 13. Re: Adopted a Website! DW says head is locked. Detach from template not available!
                              Nancy OShea Adobe Community Professional & MVP

                              Nevermind.  I see the link in your original post.

                               

                              Best suggestion I can come up with is to view source in browser, copy & paste entire code into a new, blank HTML document.  Repeat with other site pages.

                              You should have no trouble editing that.

                               

                               

                              Nancy O.