MemberSeptember 15, 2020 at 10:39 am
Hi to the great team at Ultimate Blocks. Thanks for your efforts and creating this great plugin.
I am using Amp 2.0 with Astra and unfortunately cannot consider installing a plugin that is not AMP ready out of the box.
Your Ultimate Blocks match all my features request and work very well with Astra, however, I have issues with AMP.
Here is report from AMP:
AMP does not allow the use of JS <script> tags unless they are for loading AMP components, which are added automatically by the AMP plugin. For any page to be served as AMP, all invalid script tags must be removed from the page. Instead of custom or third-party JS, please consider using AMP components and functionality such as amp-bind and actions and events (as opposed to JS event handler attributes like onclick). Some custom JS can be added if encapsulated in the amp-script. Learn more about how AMP works.
If all invalid markup is “removed” the page will be served as AMP. However, the impact that the removal has on the page must be assessed to determine if the result is acceptable. If any invalid markup is “kept” then the page will not be served as AMP.
This is affecting the following scripts:
It is likely that additional issues related to AMP exist other blocks available in Ultimate Blocks.
P.S. I understand that using AMP Transitional mode might solve this issue, however this would double up the work needed on my side and I chose not to use that mode.
P.S.2 When I don’t let the script execute, which is a possibility with AMP, the table of content feature that allow hiding/showing does not work anymore.
Thanks for your great work. Should you solve this, I will use Ultimate Block and promote it to my colleagues.
Log in to reply.