• Resolved George

    (@quantum_leap)


    Just wanted to let you know that your plugin is not enqueuing jQuery properly and it doesn’t work, at least in my case. The player is not being loaded and I get a jQuery not found error in the console. I am using the GeneratePress theme and I had to force jQuery like this for the plugin to work:

    add_action( 'wp_enqueue_scripts', 'gm_load_jquery' );
    function gm_load_jquery() {
        wp_enqueue_script( 'jquery' );
    }
Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author cubecolour

    (@numeeja)

    I have checked the code and as far as I can see jQuery is included as it should be. I have not seen this issue on any of my own sites, and it has not been reported in the six years since the plugin was first created, so I suspect this was an issue local to your site, possibly due to a conflict caused by another plugin or the theme on your site.

    Thread Starter George

    (@quantum_leap)

    Hi there.

    I suggest you reconsider the code. I tried on a fresh WP install and switched themes, no other plugins installed. It doesn’t work with the default Twenty Nineteen, Twenty Twenty, Twenty Eleven and Twenty Ten themes. It works with the Twenty Seventeen, Twenty Sixteen, Twenty Fifteen, Twenty Fourteen and Twenty Thirteen.

    Please try it on your local install and see for yourself.

    Thread Starter George

    (@quantum_leap)

    I have also cleared all possible theme caching.

    Plugin Author cubecolour

    (@numeeja)

    Thank you, I will investigate this further and will issue an update if I am able to reproduce this.

    • This reply was modified 4 years, 7 months ago by cubecolour.

    Hi @cubecolor,

    I had the very same issue when trying to install your plugin on a theme that does not enqueue jquery by default (highstarter). I got an error in the console that jQuery is undefined. I solved it by adding a custom js file and added jQuery as an array. I think you need to check in your source code if the theme uses jquery. If not, you need to enqueue it in your code. You will be able to reproduce this issue on my free WordPress theme Highstarter.

    Plugin Author cubecolour

    (@numeeja)

    Please try version 1.4.1 of the plugin

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘jQuery not enqueued properly’ is closed to new replies.