• Hi,
    i’m working on my plugin ‘GB Gallery Slider’ and i encounter a problem with jquery ui effects,
    if i use:
    wp_enqueue_script( ‘jquery-ui-core’ );
    wp_enqueue_script( ‘jquery-effects-core’ );

    the effect ‘explode’ (.hide(‘explode’,”,600); line:415) and other ui effects are not working, but if i load ‘//ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.js’ all the effects are working.

    please help me with this issue.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator bcworkz

    (@bcworkz)

    I don’t really know, I’ve never used effects in WP, but from studying the registered scripts list, it appears you need to enqueue each effect you want to use, not just effects core. That does not explain why the external UI core causes everything to work.

    I would also expect the dependencies of, say ‘jquery-effects-explode’, were resolved when it was registered. There should be no need to additionally enqueue UI core. For that matter, you shouldn’t need to enqueue ‘jquery-effects-explode’. Specify it as a dependency when you enqueue your own script and all the necessary meta links should be output.

    I would suggest enqueuing your own script with the proper dependencies and not enqueue anything else. You can examine the source HTML of the page to satisfy yourself that all the necessary files are all linked in. I’m suspicious that redundant enqueuing is somehow confusing the issue.

    Thread Starter gb-plugins

    (@gb-plugins)

    thank’s a lot for answering my question. i will be shore to try your suggestions.
    let you know how it turns out.

    Thread Starter gb-plugins

    (@gb-plugins)

    Hi Bcworkz,
    Jest want to let you know that your suggestion work’s and it has been integrated to the plugin.

    so cheers for you and again thank you

    Moderator bcworkz

    (@bcworkz)

    Awesome! I wasn’t totally sure and couldn’t imagine any easy test I could do to verify, so I just put out the suggestion anyway. Thanks for returning with the results.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘jQuery ui problem’ is closed to new replies.