Skip to main content
Drew_Allan__PM_
Participant
February 6, 2017
Answered

Saving Template - "Unbalanced InstanceBegin Tag" on Child files

  • February 6, 2017
  • 1 reply
  • 1249 views

Hello

Am new to Dreamweaver CC 2017, have just downloaded a Site created by a designer a few years ago to edit some text, so haven't made too many formatting changes. The file I am trying to update is the Template. When I go to save the Template and apply the changes to the child files I get this error for all of them.

It appears to be within the un-editable text within the Child files.

Can upload the HTML of the Template and one of the child files if someone can see where I am going wrong.

Have some previous coding knowledge, but not fully conversant yet with the nuances of HTML and Java.

Look forward to hearing from someone.

Many thanks

Drew

This topic has been closed for replies.
Correct answer BenPleysier

The child page should look like

<!doctype html>

<html><!-- InstanceBegin template="/Templates/index.dwt.php" codeOutsideHTMLIsLocked="false" -->

<head>

  <meta charset="utf-8">

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

  <title>Untitled Document</title>

  <!-- InstanceEndEditable -->

  <link rel="stylesheet" href="css/styles.css">

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

  <!-- InstanceEndEditable -->

</head>

The Template should look like

<!doctype html>

<html>

<head>

  <meta charset="utf-8">

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

  <title>Untitled Document</title>

  <!-- TemplateEndEditable -->

  <link rel="stylesheet" href="../css/styles.css">

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

  <!-- TemplateEndEditable -->

</head>

If the first line of code is different, then make sure that <!doctype html> and <html> come before anything else in your document.

1 reply

BenPleysier
Community Expert
BenPleysierCommunity ExpertCorrect answer
Community Expert
February 6, 2017

The child page should look like

<!doctype html>

<html><!-- InstanceBegin template="/Templates/index.dwt.php" codeOutsideHTMLIsLocked="false" -->

<head>

  <meta charset="utf-8">

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

  <title>Untitled Document</title>

  <!-- InstanceEndEditable -->

  <link rel="stylesheet" href="css/styles.css">

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

  <!-- InstanceEndEditable -->

</head>

The Template should look like

<!doctype html>

<html>

<head>

  <meta charset="utf-8">

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

  <title>Untitled Document</title>

  <!-- TemplateEndEditable -->

  <link rel="stylesheet" href="../css/styles.css">

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

  <!-- TemplateEndEditable -->

</head>

If the first line of code is different, then make sure that <!doctype html> and <html> come before anything else in your document.

Wappler is the DMXzone-made Dreamweaver replacement and includes the best of their powerful extensions, as well as much more!