<head> tag is in a locked region

This is a discussion on "<head> tag is in a locked region" within the Web Page Design section. This forum, and the thread "<head> tag is in a locked region are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Dec 24th, 2007, 10:57
Junior Member
Join Date: May 2007
Location: London
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
<head> tag is in a locked region

In Dreamweaver CS3, when I try to Insert\Spry\Spry Menu Bar, in a document based on a template I get the message “required links could not be added to this file because the <head> tag is in a locked region....”

I get similar problems adding other components, such as a flash button, that require access to this locked head region. The page title is also locked.

I searched high and low on the web for a solution to this. My CS3 manual says the head and title sections should remain editable when the template is created.

I found a workaround to the flash button problem by adding
HTML: Select all
<!-- TemplateBeginEditable name="javascript"--><!-- TemplateEndEditable -->
just above '</head>' tag.

But the main solution was simplicity itself and I post this problem and its solution to any other poor newbie who comes across it.

I created a new completely blank template. (my problem template was created from an existing page). The code in the head section for that was
HTML: Select all
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- TemplateBeginEditable name="doctitle" -->
<title>Untitled Document</title>
<!-- TemplateEndEditable -->
<!-- TemplateBeginEditable name="head" -->
<!-- TemplateEndEditable -->
</head>
These show the editable regions which CS3 missed out when it created my template. I pasted the begin and end comments around my <title> and added the two editable head lines just above my </head> and so far all is well.

Two other frustrating things newbies to CS3 might come across..
DIV tag rendered OK in Dreamweaver CS3 but not in browsers.
Answer: Don't start DIV tag names with numbers

Buttons centered in Dreamweaver page but rendered left justified in browsers.
Answer. The center tag had an associated text style. i.e.
HTML: Select all
<p align="center" class="TextType1">
Remove the tag and its style, then reapply the center tag.
Reply With Quote

  #2 (permalink)  
Old Dec 24th, 2007, 11:49
welshstew's Avatar
Lead Administrator

SuperMember
Join Date: May 2007
Location: inside the outside
Posts: 1,388
Blog Entries: 13
Thanks: 1
Thanked 17 Times in 15 Posts
Re: <head> tag is in a locked region

thanks for the heads up
__________________
WelshStew
Lead Administrator

tierney rides tboard - uk site | xtreme wales - extreme clothing
If you think I've helped, click the "Thanks"
webforumz - facebook | LinkedIn
Last Blog Entry: Web Standards Curriculum Launched (Jul 8th, 2008)
Reply With Quote
  #3 (permalink)  
Old Dec 24th, 2007, 18:14
Highly Reputable Member
Join Date: Sep 2007
Age: 15
Posts: 717
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Re: <head> tag is in a locked region

Yeah, thanks for that! I never use templates though, so I'm not worrying...
Last Blog Entry: Windows Vista vs. Mac Leopard (Nov 4th, 2007)
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
region specific domain? cj550 Hosting & Domains 2 Oct 13th, 2007 17:16
The stage seems locked. Janisf Starting Out 4 Jun 25th, 2007 13:02
Set Border Around Region-Body davedran Other Programming Languages 2 Dec 15th, 2006 07:43
Image opening in locked browser jonbenitos Web Page Design 3 Oct 30th, 2006 10:54


All times are GMT. The time now is 03:38.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43