• KerriM

    (@kerrim)


    I have the following code in my header.php file:

    <?php wp_enqueue_script("jquery"); ?>
    <?php if(is_page_template('page-portfolio.php')){
    	wp_enqueue_script('jquery-ui-core');
    	wp_enqueue_script('jquery-ui-tabs');
    }
    ?>

    jquery-ui-core and jquery-ui-tabs are loading in the footer of the page, however, nowhere do I have $in_footer set to true. Any clues as to why this could be happening?

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Why is wp_enqueue_script() loading scripts in footer?’ is closed to new replies.