Copy link to clipboard
Copied
I have activated Code Rewriting when I started using Dw recently. I appreciate it closing all tags, as my colleagues don't respect the proper HTML syntax.
But I have encountered a problem: when I open our template, the </head> is moved to the wrong place.
Our template is perfectly fine and correct, but we include some Salesforce AMP Script, and Dw moves the </head> to before this core code we need to run on our emails.
Mind you that inserting code in the <head> is the official recommendation from Salesforce afaik (at least this is how we've been trained by certified instructors).
It's also common practice to have <style> in the <head> so that's another reason not to move the </head>.
Copy link to clipboard
Copied
Before we can have a meaningful discussion, please answer these questions:
1) what document type are you using -- HTML5, XHTML Transitional, Strict or legacy HTML 4?
2) are you using proprietary Dreamweaver Templates /.dwt files?
If so, are you editing the child page spawned from the Template or the actual Template.dwt file?
Template structure is separate from child page structure in terms of what you can and cannot edit.
Copy link to clipboard
Copied
3) Are you wrapping AMP Script inside <script> </script> tags?