Search
Clear search
Close search
Google apps
Main menu
true

Fixing a malformed page deck

If you attempt to open a file but run into this error: "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 editing it to move elements that are outside the "gwd-page-content" class. 

Example of 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 problem is the element that's outside of the class called "gwd-page-content" (in red). To fix it, open the file in a text editor, and move the element to so that it's within the "gwd-page-content" div: 

    <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>
 
Was this article helpful?
How can we improve it?