Support » Plugin: Use Google Libraries » Using with non WordPress jquery scripts

  • Resolved andymiller



    I’ve been using the plugin and it works really well. Thank you.

    I’m thinking about installing Swipebox which doesn’t have a wordpress plugin. I was thinking about using the method described in the Dave Ward article to get jquery from the Google CDN.

    If I did that would there be any conflict with the plugin? Should I deactivate the plugin?


Viewing 2 replies - 1 through 2 (of 2 total)
  • EDIT (except that I can’t edit my post). Googling around it looks like I’d need to amend the functions.php, along the lines of:

    if (!is_admin()) add_action(“wp_enqueue_scripts”, “my_jquery_enqueue”, 11);
    function my_jquery_enqueue() {
    wp_register_script(‘jquery’, “http” . ($_SERVER[‘SERVER_PORT’] == 443 ? “s” : “”) . “://”, false, null);

    Does this in effect replace what the plugin does? Does the plugin do this anyway?

    Thanks again – sorry if these are daft questions.

    Plugin Author Jason Penney


    There’s a lot of other information with the script registration besides just the URL. The plugin handles all of that. Also it doesn’t just do jQuery itself, it does all the libraries it can, and uses the exact version that your WordPress install requires you to use.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Using with non WordPress jquery scripts’ is closed to new replies.