Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • For me this has to do with the order in which the scripts are loaded. Their javascript is loaded via wp_enqueue_script.

    In application/frontend/manager.php [line: 105] there is :

    wp_enqueue_script('aam-login', AAM_MEDIA . '/js/aam-login.js');

    If I change this to:

    wp_enqueue_script('aam-login', AAM_MEDIA . '/js/aam-login.js', ['jquery']);

    It works.

    What you could do is remove the script with wp_dequeue_script and then re-enqueue it in your functions.php or elsewhere, passing jquery as a pre-requisite, as seen in the second code example above. You would have to change AAM_MEDIA to a relative or absolute path to the plugin directory.

    **Edit**

    I just implemented it for my site. You want to do something similar to the following. I’m using bedrock by roots.io for a theme, so my directory structure is a bit different than standard wordpress.

    add_action('wp_enqueue_scripts', function(){
        wp_dequeue_script('aam-login');
        wp_enqueue_script('aam-login', get_home_url() . '/app/plugins/advanced-access-manager/media/js/aam-login.js', ['jquery']);
    });
    • This reply was modified 8 years, 3 months ago by jgarib.
    Thread Starter jgarib

    (@jgarib)

    Hi. I re-upped the maintenance of our Events Calendar Pro plugin and upgraded to version 4.4.14. This resolved the issue.

    I’m not sure if you are aware that events calendar 4.5.8 and events calendar pro 4.4.3 are incompatible, but now you are!

    • This reply was modified 8 years, 11 months ago by jgarib.
Viewing 2 replies - 1 through 2 (of 2 total)