Universal CSS Navigation Menu Support Product Page

Under investigation

Universal Menu adds code to top of Document before the <!DOCTYPE html>.

Reported 01 Apr 2014 22:00:02
has this problem
01 Apr 2014 22:00:02 David Slentz posted:
Every time I open up my Dreamweaver CS5.5 template (Bootstrap v3, Universal Menu, Supersized, NivoSlider, etc.), I was told that Universal Menu places the following code at the very top of the coding before the <!DOCTYPE html> :

<!--[if lt IE 7]><script type="text/javascript" src="../Styles/IE7.js"></script><![endif]-->

This happens each time I open the Template. If I do not delete that line of
code each time, I will end up with more and more codes and getting errors also. Is there a way to get it to stop adding this line of text?

This problem causes another even BIGGER problem --- when I save the Template file, it places that code there again, and Dreamweaver gives me this error message:

You have added or changed code outside the <html> tag. This change will not be copied to documents based on the template unless you insert this tag in the <head> of your template:
<!--TemplateInfo codeOutsideHTMLIsLocked="true" -->

Example of this is: www.dm-webcreation.com/pc2/


Replied 02 Apr 2014 08:38:40
02 Apr 2014 08:38:40 Teodor Kuduschiev replied:
The issue is caused by bad page code.
Your template does not have an editable region named "head" inside the head tags of the page and Dreamweaver does not know where to place the includes.
Replied 03 Apr 2014 17:07:51
03 Apr 2014 17:07:51 David Slentz replied:
Okay, I believe this has solved the problem...
I had to educate myself a bit about this editable region named "head" that you referred to. This is what I did:
I manually added this code:
<!-- TemplateBeginEditable name="head" -->
<!-- TemplateEndEditable -->
...around the entire section immediately after the "<!-- TemplateBeginEditable name="doctitle" --> <!-- TemplateEndEditable -->

Did I do this correctly?

The QUESTION I now have is: Isn't Dreamweaver CS5.5 supposed enter all these codes when I converted my original html document to a template?? Or was there a step I missed when I saved it as a template?

Thanks for all your help with these extensions!
Replied 03 Apr 2014 20:46:38
03 Apr 2014 20:46:38 David Slentz replied:
Oops... That did not work properly at all. ImageEnhancer stopped working and the NivoSlider disappeared completely!!

Where is that "head" template code actually supposed to go?
Replied 04 Apr 2014 09:18:20
04 Apr 2014 09:18:20 Teodor Kuduschiev replied:
It all looks fine now on the link you provided.
Replied 04 Apr 2014 14:09:00
04 Apr 2014 14:09:00 David Slentz replied:
Yes, everything works, but while editing (even the smallest edit in only the editable region) I repeatedly get this message and have to click off on it several times:
"You have made changes to code that is not marked as editable. If you retain those changes, they will be lost the next time you apply a template update to this file. Do you want to retain the changes until then?"

Something must be automatically adding code somewhere, right?
How can I get rid of this? It makes saving even the smallest change a lengthy process.

Reply to this topic