• Resolved dimabobrovski

    (@dimabobrovski)


    I trying connect custom java script to amp page, i did it by example and nothing not working.

    in the head i put :

    <script async custom-element=”amp-script” src=”https://cdn.ampproject.org/v0/amp-script-0.1.js”></script&gt;

    in body:

    <amp-script src=”<?php echo get_template_directory_uri(); ?>/assets/js/modules/script.js”>
    <div id=”test”></div>
    </amp-script>

    java script is simple alert some text.

    why it not working ?

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Custom JavaScript’ is closed to new replies.