• Resolved Shobha2208

    (@shobha2208)


    Hi:

    As you are aware my entire site is now on AMP Standard, and works brilliantly. Only one page turns up an error when the WordPress Customizer is used. All other pages and posts are fine. I have also cut down the CSS on my site quite drastically.

    The page that gives trouble is: [ redundant link removed ]

    The error I get is: “Failed to prepare AMP page”

    Would youplease be able to help?

    Regards, and thanks in advnace.

    Shobha Ponnappa

    • This topic was modified 3 years, 4 months ago by Shobha2208.
    • This topic was modified 3 years, 4 months ago by Jan Dembowski.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 16 through 17 (of 17 total)
  • Thread Starter Shobha2208

    (@shobha2208)

    Hi Milind:

    I solved all the problems completely in one simple stroke. I saw that there was something wrong with images … so when I read some AMP articles again one article had said all images for AMP should be tagged with starting <amp-img> and end with </amp-img>

    Plus, you have to give the actual width and height of the final image but add layout=”responsive” in the image tag after stating height and width. Now if you add a div around the image and state the width % of the div the image renders perfectly.

    For example the code should be like this:

    <div id=”roundupexpert” style=”float: left; margin-right: 30px;”>
    <amp-img src=”https://solohacks-academy.com/photos/marla-tabaka-solopreneur-success.jpg&#8221; height=”100px” width=”100px” layout=”responsive” alt=”Marla Tabaka”></amp-img>
    </div>

    For mobile you can give at @media query with the image id and say it should be 100% width.

    When I did this all images sat in their correct places in both laptop and mobile – plus the Customizer issue is also sorted out.

    Wow … I was so depressed before I found this stupidly simple explanation.

    Shobha

    Wow!

    Plugin Support Milind More

    (@milindmore22)

    Glad everything worked out, I will make a note, of this solution, Thanks for following up and debugging the issue. I’ll mark this as resolved. Feel free to open a new support topic if you require any further assistance.

Viewing 2 replies - 16 through 17 (of 17 total)
  • The topic ‘Only one AMP page returns error in Customizer’ is closed to new replies.