Title: [Plugin: Shortcodes Ultimate] Shortcodes Loading before jQuery
Last modified: August 20, 2016

---

# [Plugin: Shortcodes Ultimate] Shortcodes Loading before jQuery

 *  Resolved [novusweb](https://wordpress.org/support/users/novusweb/)
 * (@novusweb)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/plugin-shortcodes-ultimate-shortcodes-loading-before-jquery/)
 * Shortcodes is not working in the text editor correctly: whenever we select a 
   shortcode from the drop-down, nothing is revealed. No js action occurs.
 * Console reports an error that the var JQuery can’t be found for use in generator.
   js.
 * Looking at the page code, we see this:
 *     ```
       <script type='text/javascript' src='http://www.domain.com/wp-includes/js/l10n.js?ver=20101110'></script>
       <script type='text/javascript' src='http://www.domain.com/wp-content/plugins/shortcodes-ultimate/js/generator.js?ver=3.2.1'></script>
       <script type='text/javascript' src='http://www.domain.com/wp-includes/js/jquery/jquery.js?ver=1.6.1'></script>
       <script type='text/javascript' src='http://www.domain.com/wp-admin/js/utils.js?ver=20101110'></script>
       ```
   
 * It looks like generator.js is loading before the jquery library. All other plug-
   in js comes after this block of code.
 * Could this be the cause of the problem? How do we solve it?
 * (BTW, it has worked before. This particular MU site has very few plug-ins installed,
   as it’s our internal Wiki site. However, SU is showing the same problem on all
   MU sites.)
 * Thanks.
 * [http://wordpress.org/extend/plugins/shortcodes-ultimate/](http://wordpress.org/extend/plugins/shortcodes-ultimate/)

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

 *  Plugin Author [Vova](https://wordpress.org/support/users/gn_themes/)
 * (@gn_themes)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/plugin-shortcodes-ultimate-shortcodes-loading-before-jquery/#post-2307298)
 * Hi,
 * thanks for report!
 * Please wait for next release. I’ll fix it.
 * At this moment you can manually solve the problem by editing plugin source code.
 * File: shortcodes-ultimate.php, line: 61
 * replace this:
 * `wp_register_script( 'shortcodes-ultimate-generator', su_plugin_url() . '/js/
   generator.js', false, su_get_version(), false );`
 * with this:
 * `wp_register_script( 'shortcodes-ultimate-generator', su_plugin_url() . '/js/
   generator.js', array( 'jquery' ), su_get_version(), false );`
 *  Thread Starter [novusweb](https://wordpress.org/support/users/novusweb/)
 * (@novusweb)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/plugin-shortcodes-ultimate-shortcodes-loading-before-jquery/#post-2307299)
 * Thanks. I’ll give this a try.
 * We really enjoy using these!
 *  Thread Starter [novusweb](https://wordpress.org/support/users/novusweb/)
 * (@novusweb)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/plugin-shortcodes-ultimate-shortcodes-loading-before-jquery/#post-2307300)
 * Just tried your fix, and it works!
 * Thanks!
 *  Plugin Author [Vova](https://wordpress.org/support/users/gn_themes/)
 * (@gn_themes)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/plugin-shortcodes-ultimate-shortcodes-loading-before-jquery/#post-2307301)
 * Not at all.
 * Wait for next release and update. It will contain this changes.
 *  [darkpollo](https://wordpress.org/support/users/darkpollo/)
 * (@darkpollo)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/plugin-shortcodes-ultimate-shortcodes-loading-before-jquery/#post-2307481)
 * Has this been fixed on the latest version 3.3?
 * thanks
 *  Plugin Author [Vova](https://wordpress.org/support/users/gn_themes/)
 * (@gn_themes)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/plugin-shortcodes-ultimate-shortcodes-loading-before-jquery/#post-2307494)
 * Yes, it fixed!

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

The topic ‘[Plugin: Shortcodes Ultimate] Shortcodes Loading before jQuery’ is closed
to new replies.

 * ![](https://ps.w.org/shortcodes-ultimate/assets/icon-256x256.gif?rev=2547563)
 * [Shortcodes Ultimate - Content Elements](https://wordpress.org/plugins/shortcodes-ultimate/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/shortcodes-ultimate/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/shortcodes-ultimate/)
 * [Active Topics](https://wordpress.org/support/plugin/shortcodes-ultimate/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/shortcodes-ultimate/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/shortcodes-ultimate/reviews/)

 * 6 replies
 * 3 participants
 * Last reply from: [Vova](https://wordpress.org/support/users/gn_themes/)
 * Last activity: [14 years, 7 months ago](https://wordpress.org/support/topic/plugin-shortcodes-ultimate-shortcodes-loading-before-jquery/#post-2307494)
 * Status: resolved