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?
BroOf said
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%
Ahh! You’re right! Thank you for the help!
Hmm I don’t get it integrated… Has someone a sample code for me please
?
BroOf saidloads jquery UI core and widgets in the footer scripts by default, so make sure you have in your footer
Hmm I don’t get it integrated… Has someone a sample code for me please?
<?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 
Thank you so much for your effort. I really appreciate this!
