Loading jquery UI in template and how?
-
Just trying to enqueue jquery and two dependencies but am a bit baffled. In the past I have enqueued jquery by placing the following code before wp_head in my template:
<?php wp_enqueue_script('jquery'); ?>
Now I wish to use the WordPress included versions of jquery, jquery UI and jquery UI tabs. I have googled the topic but just couldn’t get my head around it. How do I enqueue jquery and the two dependencies?
This is not working of course:
<?php wp_enqueue_script('jquery'); wp_enqueue_script('jquery-ui-core'); wp_enqueue_script('jquery-ui-tabs'); ?>
Thanks!
- The topic ‘Loading jquery UI in template and how?’ is closed to new replies.