GWD removing commented out scripts etc in head

Skip to first unread message

Chris Howard

Oct 23, 2017, 2:38:25 AM10/23/17
to Google Web Designer beta
Hi all,

I have been trying to setup a file for multiple outputs.

The problem is I wanted to comment out the areas and add them back in as necessary in the code view.

For example adding in the script for Sizmek's platform "<script type="text/javascript" src=""></script>" but as the below so it is not active.

<!--<script type="text/javascript" src=""></script>-->

The issue is once you save the file and reopen in GWD it has completely removed the comments and everything inside them.

Has anyone else experienced this issue and/or knows how to resolve it or is it simply not possible using GWD?

Any information or help is greatly appreciated.


Kent Myers

Oct 23, 2017, 11:10:09 AM10/23/17
to Google Web Designer beta
Sorry, removing comments in the HTML & CSS is the intended behavior.
Maybe you could rewrite your scripts to make the changes there, as comments in the javascript will be respected.

Hope that helps,

Google Web Designer team
Reply all
Reply to author
0 new messages