Custom JavaScript is not allowed.

Posted in: Newspaper
Post count: 1

facing Custom JavaScript is not allowed. it is infected with 197 pages

in amp it is showing some javascript.
Screenshot : https://prnt.sc/ld1ntg
AMP Val : https://validator.ampproject.org/#url=https%3A%2F%2Fwww.olivaclinic.com%2Fblog%2Fprp-hair-treatment-all-you-need-to-know%2Famp%2F

Post count: 35449

Hi,

Please read AMP HTML Specification ->
https://forum.tagdiv.com/topic/custom-javascript-is-not-allowed/

While it does allow styling the document using custom CSS, it does not allow author written JavaScript beyond what is provided through the custom elements to reach its performance goals.

https://www.screencast.com/t/BKkjHyDA

Also after you manage the javascript, please access your permalinks section of WordPress and press the save button again for the permalinks. you do not have to change the structure. Just save gain. This fixed the amp error for most users.

Thank you.

Post count: 205

Please let me know how to fix this AMP error

Screenshot

Post count: 205

Hello, I have fixed above error.
Now no need to reply.

Viewing 4 posts - 1 through 4 (of 4 total)
The forum ‘Newspaper’ is closed to new topics and replies.