• Resolved alice1000

    (@alice1000)


    Hi,

    I’m trying to use your plugin on an AMP website, displaying of the review is working (even pagination) but regarding the review form the rating is not working, if I removed the rating part it’s working

    Is there a place where I can change the rating system to something much simple and so AMP compatible ?

    Version 4.5.4

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Gemini Labs

    (@geminilabs)

    Since Site Reviews requires the plugin javascript to work, AMP is not not supported.

    Here is a more detailed explanation from the official AMP plugin:

    Arbitrary JavaScript is not allowed in AMP. You cannot use JS <script> tags unless they are for loading AMP components (which the AMP plugin will add for you automatically). In order for a page to be served as AMP, the invalid JS code must be removed from the page. Learn more about how AMP works. As an alternative to using custom JS, please consider using a pre-built AMP functionality, including actions and events (as opposed to JS event handler attributes like onclick) and the amp-bind component; you may also add custom JS if encapsulated in the amp-script.

    If you remove the invalid markup then it will not block this page from being served as AMP. Note that you need to check what impact the removal of the invalid markup has on the page to see if the result is acceptable. If you keep the invalid markup, then the page will not be served as AMP.

    • This reply was modified 4 years, 12 months ago by Gemini Labs.
    Plugin Author Gemini Labs

    (@geminilabs)

    Site Reviews v5.0 will show a dropdown instead of the star rating control on AMP pages.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘AMP support’ is closed to new replies.