wp_enqueue_script with Jquery UI and Tabs
-
HI everyone,
I’m having a really hard time getting ‘wp_enqueue_script’ to load correctly and work in the admin.
Here is my code:
function load_scripts(){ wp_enqueue_script( 'jquery' ); wp_enqueue_script( 'jquery-ui-core' ); wp_enqueue_script( 'jquery-ui-tabs' ); echo '<script type="text/javascript"> jQuery.noConflict(); jQuery(document).ready(function($) { jQuery("#tabs").tabs(); }); </script>'; echo ' <style type="text/css"> .ui-tabs .ui-tabs-hide { display: none; } </style> '; } add_action( 'admin_head', 'load_scripts' );
its not loading in the scripts and it’s returning an: “jQuery(“#tabs”).tabs is not a function” error in FireBug.
Please help..
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘wp_enqueue_script with Jquery UI and Tabs’ is closed to new replies.