• Resolved hasanoca

    (@hasanoca)


    Are you doing anything for Accelarated Mobile Pages (amp) integration? I have about 1200 questions produced with HD Quiz plugin. In normal version they work fine. But with the amp pages they simply don’t exist. Help please.

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Harmonic Design

    (@harmonic_design)

    Hi hasanoca,
    The entire purpose of an APM page is to be accelerated – ie: to be a super fast and stripped down version of the original page focused on mobile.

    Because of this, every single “APM Plugin” I’ve seen goes out of its way to strip out all extra shortcodes and jQuery. Your listed AMP page does not even have ANY of the WordPress, theme, or plugin Javascript files.

    So in short, the way that you are creating and generating your AMP pages, having something as advanced as a quiz plugin will not be possible. There is nothing on my end that could ever be done to change this functionality.

    My recommendations would be to do the following:

    1. Hire a developer to edit your AMP generation to always include HD Quiz shortcodes and to detect when a shortcode is used. You can then run the full query and include the relevant footer scripts that WordPress requires.

    2) If the above is not possible for you, then we can use some trickery to get as close as we can. Create a button at the top of your content and link it to the same post. Give this button a class of hidden. In your theme’s css style.css, add the following rule .hidden {display:none;}

    What that will do is create a link/button at the top of the page that links to the non AMP version of the page, but this link will be hidden on your main site, and only visible on the AMP page. This way if someone comes to the quiz from Google for example, they will see a button that they can use to visit the full page.

    Thread Starter hasanoca

    (@hasanoca)

    Of your recommendations, I don’t understand the first one, as you foresaw, but I do appreciate the second one. Thank you very much. For those interested, I use a simple “a href” link, in whose style section I add the css display none.

    Plugin Author Harmonic Design

    (@harmonic_design)

    Thanks for getting back to me with an update, and I’m glad I could help!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘amp integration’ is closed to new replies.