If you edit a source file by hand, you may see the following error message may occur when you try to open the file in Google Web Designer:
This file contains a malformed page deck. If the file was edited by hand, please make sure there is exactly one page deck containing only pages as children, and make sure each page has a single child with the class gwd-page-content
You can fix the file by editing the source HTML to move elements that are outside the gwd-page-content
class.
Example of a malformed page deck in a banner ad:
<div is="gwd-pagedeck" class="gwd-page-container" id="pagedeck">
<div is="gwd-page" id="page1" class="gwd-page-wrapper gwd-page-size gwd-lightbox" data-gwd-width="300px" data-gwd-height="250px">
<div class="gwd-page-content gwd-page-size"></div>
<div>element</div>
</div>
</div>
The highlighted element in the code above is the problem, as it's outside the div with the gwd-page-content
class. Move this element inside the gwd-page-content
div.
Example of the fixed source code:
<div is="gwd-pagedeck" class="gwd-page-container" id="pagedeck">
<div is="gwd-page" id="page1" class="gwd-page-wrapper gwd-page-size gwd-lightbox" data-gwd-width="300px" data-gwd-height="250px">
<div class="gwd-page-content gwd-page-size"><div>element</div></div>
</div>
</div>
Learn more about pages.