WordPress.org

Ready to get started?Download WordPress

Forums

Java Script for Header (2 posts)

  1. ssonali
    Member
    Posted 2 years ago #

    Hello,

    I want to include external .js file in header for navigation. I have put code as below. But still not showing properly.

    <?php wp_enqueue_script("jquery"); ?>
    <?php wp_head(); ?>
    <script type="text/javascript" src="<?php bloginfo("template_url"); ?>/wp-includes/js/jquery/commonFunction.js"></script>

    Please replay. Thanks in advance.

    Regards,
    Sonali

  2. ssonali
    Member
    Posted 2 years ago #

    Can anybody pls tell me how to put javascript in header for top navigation.

    Regards,
    Sonali

Topic Closed

This topic has been closed to new replies.

About this Topic