Viewing 3 replies - 1 through 3 (of 3 total)
  • I think you need to look at how to add jquery (or any .js) to your theme correctly:

    wp_enqueue_script

    add_action('wp_head','register_jquery',0);
    function register_jquery(){
    wp_enqueue_script('jquery');
    }
    Thread Starter fffkral

    (@fffkral)

    Thanks very much
    Is possible to guide me with an example
    In home.php, I put a jquery tab that need these

    <script type='text/javascript' src='js/jquery.min.js'></script>
    <script type="text/javascript" src="js/organictabs.jquery.js"></script>

    And i put this .js files in theme js directory
    I want to this files just load in home page
    please write the code for one of this files for example,please
    Again thank you

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘insert jquery to template’ is closed to new replies.