Copy link to clipboard
Copied
I'm getting an unbalanced body code error on a web site that I haven't made changes to for over a year.
when I try to update the template I get the error and the pages will not update.
I'm using CS6 for this web site.
Here's my code. Any ideas would be appreciated.
Thanks
<!doctype html>
<!--[if lt IE 7]> <html class="ie6 oldie"> <![endif]-->
<!--[if IE 7]> <html class="ie7 oldie"> <![endif]-->
<!--[if IE 8]> <html class="ie8 oldie"> <![endif]-->
<!--[if gt IE 8]><!-->
<html class="">
<!--<![endif]-->
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- TemplateBeginEditable name="doctitle" -->
<title>Untitled Document</title>
<!-- TemplateEndEditable -->
<link href="../boilerplate.css" rel="stylesheet" type="text/css">
<link href="../afc.css" rel="stylesheet" type="text/css">
<link href="../css/style1.css" rel="stylesheet" type="text/css">
<!--
To learn more about the conditional comments around the html tags at the top of the file:
paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/
Do the following if you're using your customized build of modernizr (http://www.modernizr.com/):
* insert the link to your js here
* remove the link below to the html5shiv
* add the "no-js" class to the html tags at the top
* you can also remove the link to respond.min.js if you included the MQ Polyfill in your modernizr build
-->
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<script src="../respond.min.js"></script>
<!-- Start css3menu.com HEAD section -->
<link rel="stylesheet" href="Navigation-responsive_files/css3menu1/style.css" type="text/css" /><style type="text/css">._css3m{display:none}</style>
<!-- End css3menu.com HEAD section -->
<!-- TemplateBeginEditable name="head" -->
<!-- TemplateEndEditable -->
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i
(i
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('set', 'userId', {{USER_ID}}); // Set the user ID using signed-in user_id.
ga('create', 'UA-76428350-1', 'auto');
ga('send', 'pageview');
</script>
</head>
<body>
<div class="background-header" id="header-color">
<div class="gridContainer clearfix">
<div id="Header1"><img src="../images/afc-logo.png" class="image-pad-left"></div>
<p><br>
<br>
<br>
</p>
<div class="h1-straight" id="Header2"><img src="../images/solving-your-cash-flow-problems.png"></div>
</div>
</div>
<div class="gridContainer clearfix">
<div id="LayoutDiv1"></div>
</div>
<div class="background-green" id="Navigation">
<div class="gridContainer clearfix">
<!-- Start css3menu.com BODY section -->
<input type="checkbox" id="css3menu-switcher" class="c3m-switch-input">
<ul id="css3menu1" class="topmenu">
<li class="switch"><label onclick="" for="css3menu-switcher"></label></li>
<li class="topmenu"><a href="cash-flow.html" style="height:15px;line-height:15px;">Cash Flow</a></li>
<li class="topmenu"><a href="factoring-benefits.html" style="height:15px;line-height:15px;">Benefits</a></li>
<li class="topmenu"><a href="what-is-factoring.html" style="height:15px;line-height:15px;">What is Factoring?</a></li>
<li class="topmenu"><a href="how-factoring-works.html" style="height:15px;line-height:15px;">How It Works</a></li>
<li class="topmenu"><a href="getting-started.html" style="height:15px;line-height:15px;">Getting Started</a></li>
<li class="topmenu"><a href="http://www.afcaffiliatedfunding.com/business-development-referral-program.html" style="height:15px;line-height:15px;">Brokers</a></li>
<li class="topmenu"><a href="http://www.afcaffiliatedfunding.com/funding-successes.html" style="height:15px;line-height:15px;">Success Stories</a></li>
<li class="topmenu"><a href="faq.html" style="height:15px;line-height:15px;">FAQ</a></li>
<li class="topmenu"><a href="why-use-affiliated-funding-corp.html" style="height:15px;line-height:15px;">Why AFC</a></li>
<li class="topmenu"><a href="contact-us.html" style="height:15px;line-height:15px;">Contact</a></li>
<li class="topmenu"><a href="about-us.html" style="height:15px;line-height:15px;">About</a></li>
<li class="topmenu"><a href="index.html" style="height:15px;line-height:15px;">Home</a></li>
</ul>
<!-- End css3menu.com BODY section -->
</div>
</div>
<div class="gridContainer clearfix">
<p><br>
<br>
</p>
<div id="Body"><!-- TemplateBeginEditable name="EditRegion3" -->EditRegion3<!-- TemplateEndEditable -->
</div>
<p> </p>
</div>
<div align="center" class="background-green" id="Footer">
<div class="gridContainer clearfix">
<div class="body-white" id="footer-content"><br>
Contact us at 801-733-7565<br>
<br>
</div>
</div>
<div align="left" class="background-black" id="black-bottom">
<div align="left" class="gridContainer clearfix">
<div id="footer-nav-info">
<p class="body-white"><a href="../index.html" class="body-white">Home</a><br>
<a href="../contact-us.html" class="body-white">Contact</a><br>
<a href="../about-us.html" class="body-white">About</a><br>
<a href="../why-use-affiliated-funding-corp.html" class="body-white">Why AFC</a><br>
<a href="../faq.html" class="body-white">FAQ</a></p>
</div>
<div id="footer-nav-info-2">
<p class="body-white"><a href="../cash-flow.html" class="body-white">Cash Flow</a><br>
<a href="../factoring-benefits.html" class="body-white">Benefits</a><br>
<a href="../what-is-factoring.html" class="body-white">What is Factoring?</a><br>
<a href="../how-factoring-works.html" class="body-white">How it Works </a><br>
<a href="../client-application.html" class="body-white">Client Application </a><br>
<a href="../funding-successes.html" class="body-white">Success Stories</a><br>
<a href="../business-development-referral-program.html" class="body-white">Brokers - Business Development Referral Program</a> <br>
<br>
</p>
</div>
</div>
</div>
</div>
</body>
</html>
You can still use Dreamweaver, merely detach the document from the Template
Copy link to clipboard
Copied
The only problems that I see
You state that you are getting an error message, where from may I ask?
Copy link to clipboard
Copied
The error comes in DreamWeaver (cs6). When I go to my template and try to make a change it tells me there is an unbalanced body tag error on line 63. the only thing on that line is <body>
It will not let me update the individual pages after making the change to the template.
I may have to edit the pages individually with some other kind of editor in order to get the change taken care of.
Thanks for the reply.
Copy link to clipboard
Copied
You can still use Dreamweaver, merely detach the document from the Template
Copy link to clipboard
Copied
Ben,
Wow. The things you learn on the forum...
I'll play with that in the morning. I appreciate the info. Thank you very much!
Copy link to clipboard
Copied
Before you detach Template, try putting your GA tracking script inside the <head> tag, and moving the Template editable under the closing </head> like this:
!doctype html>
<!--[if lt IE 7]> <html class="ie6 oldie"> <![endif]-->
<!--[if IE 7]> <html class="ie7 oldie"> <![endif]-->
<!--[if IE 8]> <html class="ie8 oldie"> <![endif]-->
<!--[if gt IE 8]><!-->
<html class="">
<!--<![endif]-->
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- TemplateBeginEditable name="doctitle" -->
<title>Untitled Document</title>
<!-- TemplateEndEditable -->
<link href="../boilerplate.css" rel="stylesheet" type="text/css">
<link href="../afc.css" rel="stylesheet" type="text/css">
<link href="../css/style1.css" rel="stylesheet" type="text/css">
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<script src="../respond.min.js"></script>
<!-- Start css3menu.com HEAD section -->
<link rel="stylesheet" href="Navigation-responsive_files/css3menu1/style.css" type="text/css" />
<style type="text/css">
._css3m { display: none }
</style>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i
(i
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('set', 'userId', {{USER_ID}}); // Set the user ID using signed-in user_id.
ga('create', 'UA-76428350-1', 'auto');
ga('send', 'pageview');
</script>
</head>
<!-- TemplateBeginEditable name="head" -->
<!-- TemplateEndEditable -->
Copy link to clipboard
Copied
Nancy,
Thanks for the idea. I did try it and still received the unbalanced body tag error.
This is a small site. Maybe a dozen pages to change. I will just make the change for now on the pages individually.
Thanks
Copy link to clipboard
Copied
Ben,
DW CS6 is what I am using. I cannot see a "Tools" option at the top. ?
Is CS6 that much different than the current CC?
Copy link to clipboard
Copied
OK, I found it under "Modify".
Thanks