• Resolved lofesa

    (@lofesa)


    Hi
    When the plugin is enabled, AMP plugin say that have validation issues. I have solved this loading jquery only when page is not amp. Some like this:

    if (function_exists( ‘is_amp_endpoint’ ) && ! is_amp_endpoint()) {
        wp_enqueue_script('jquery', plugins_url('/js/jquery-3.4.1.min.js', __FILE__), false, '3.4.1', true);
        }
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘AMP’ is closed to new replies.