• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Code rewriting is buggy - wrong <head> closing

New Here ,
Oct 01, 2024 Oct 01, 2024

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>.

 

 

TOPICS
Code , Error , Import and export , Product issue

Views

48

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 01, 2024 Oct 01, 2024

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.

 

 

 

Nancy O'Shea— Product User, Community Expert & Moderator

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 01, 2024 Oct 01, 2024

Copy link to clipboard

Copied

LATEST

3) Are you wrapping AMP Script inside <script> </script> tags?

 

Nancy O'Shea— Product User, Community Expert & Moderator

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines