1799 posts
  • Has been a member for 5-6 years
  • Germany
  • Exclusive Author
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Sold between 5 000 and 10 000 dollars
  • Microlancer Beta Tester
  • Bought between 10 and 49 items
  • Referred between 1 and 9 users
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?

3113 posts
  • Sold between 5 000 and 10 000 dollars
  • United States
  • Bought between 10 and 49 items
  • Has been a member for 3-4 years
  • Exclusive Author
chrisakelley 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 been a member for 5-6 years
  • Germany
  • Exclusive Author
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Sold between 5 000 and 10 000 dollars
  • Microlancer Beta Tester
  • Bought between 10 and 49 items
  • Referred between 1 and 9 users
BroOf says

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

1799 posts
  • Has been a member for 5-6 years
  • Germany
  • Exclusive Author
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Sold between 5 000 and 10 000 dollars
  • Microlancer Beta Tester
  • Bought between 10 and 49 items
  • Referred between 1 and 9 users
BroOf says

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

3113 posts
  • Sold between 5 000 and 10 000 dollars
  • United States
  • Bought between 10 and 49 items
  • Has been a member for 3-4 years
  • Exclusive Author
chrisakelley 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 been a member for 5-6 years
  • Germany
  • Exclusive Author
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Sold between 5 000 and 10 000 dollars
  • Microlancer Beta Tester
  • Bought between 10 and 49 items
  • Referred between 1 and 9 users
BroOf says

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

by
by
by
by
by
by