1799 posts
  • Has referred 1+ members
  • Has sold $5,000+ on Envato Market
  • Has been a beta tester for an Envato feature
  • Has collected 10+ items on Envato Market
+4 more
BroOf says

I am building my own theme options framework and I would like to include the jQuery UI Slider. BUT there is no entry in the official function reference for wp enqueue script: http://codex.wordpress.org/Function_Reference/wp_enqueue_script

Do I have to include the jQuery UI widgets manually or is there another way? How do you do it?

3427 posts
  • Has sold $5,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Located in United States
  • Has been part of the Envato Community for over 4 years
+1 more
organicbee says

I am building my own theme options framework and I would like to include the jQuery UI Slider. BUT there is no entry in the official function reference for wp enqueue script: http://codex.wordpress.org/Function_Reference/wp_enqueue_script Do I have to include the jQuery UI widgets manually or is there another way? How do you do it?

UI widgets are included with WordPress(wp-includes/js/jquery) there may be a way to enqueue remember the codex isnt always 100%

1799 posts
  • Has referred 1+ members
  • Has sold $5,000+ on Envato Market
  • Has been a beta tester for an Envato feature
  • Has collected 10+ items on Envato Market
+4 more
BroOf says

Ahh! You’re right! Thank you for the help!

1799 posts
  • Has referred 1+ members
  • Has sold $5,000+ on Envato Market
  • Has been a beta tester for an Envato feature
  • Has collected 10+ items on Envato Market
+4 more
BroOf says

Hmm I don’t get it integrated… Has someone a sample code for me please :D?

3427 posts
  • Has sold $5,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Located in United States
  • Has been part of the Envato Community for over 4 years
+1 more
organicbee says

Hmm I don’t get it integrated… Has someone a sample code for me please :D?
loads jquery UI core and widgets in the footer scripts by default, so make sure you have in your footer
        <?php wp_footer(); ?>
add_action('wp_print_scripts', 'rapid_load_scripts');

function rapid_load_scripts()
{
    if (is_admin())
    {
        return false;
    }

    if (!is_admin())
    {
        wp_enqueue_script( 'jquery' );
        wp_enqueue_script( 'jquery-ui-core' );
        wp_enqueue_script( 'jquery-ui-widget' );

        if ( is_singular() and comments_open() and (get_option('thread_comments') == 1))
        {
            wp_enqueue_script( 'comment-reply' );
        }

    }
}

EDIT : Forum messed up the first one just need the right tags :-)

1799 posts
  • Has referred 1+ members
  • Has sold $5,000+ on Envato Market
  • Has been a beta tester for an Envato feature
  • Has collected 10+ items on Envato Market
+4 more
BroOf says

Thank you so much for your effort. I really appreciate this!

Helpful Information

  • Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
  • Open a support ticket if you would like specific help with your account, deposits or purchases.
  • Item Support by authors is optional and may vary. Please see the Support tab on each item page.

Most of all, enjoy your time here. Thank you for being a valued Envato community member.

Post Reply

Format your entry with some basic HTML. Read the Full Details, or here is a refresher:

<strong></strong> to make things bold
<em></em> to emphasize
<ul><li> or <ol><li> to make lists
<h3> or <h4> to make headings
<pre></pre> for code blocks
<code></code> for a few words of code
<a></a> for links
<img> to paste in an image (it'll need to be hosted somewhere else though)
<blockquote></blockquote> to quote somebody

:grin: :shocked: :cry: Complete List of Smiley Codes

by
by
by
by
by
by