Forums

Loading jquery UI in template and how? (1 post)

  1. NielsO
    Member
    Posted 1 year ago #

    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!

Topic Closed

This topic has been closed to new replies.

About this Topic