Viewing 5 replies - 1 through 5 (of 5 total)
  • Mark Ratledge

    (@songdogtech)

    You should be enqueuing scripts in functions. php; see Function Reference/wp enqueue script ? WordPress Codex.

    And use Firebug with Firefox, or use the developer tools in Chrome or Safari or IE to see what javascript is loading on your site and any errors.

    Thread Starter etickettati

    (@etickettati)

    Thanks !!

    well. .. with firebug it seems like they are all loaded, so why is it not sliding pressing the buttons on the left ? ??

    Thread Starter etickettati

    (@etickettati)

    so i have to move this code, from the <head></head> into header. php to functions. php ?

    <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
    
     <?php
    
            /*************************************************************/
            /************LOAD SCRIPTS***********************************/
            /*************************************************************/
    
                wp_deregister_script('jquery');
                wp_register_script('jquery', get_template_directory_uri().'/script/jquery/jquery-1.7.2.min.js');
                wp_register_script('jquery', get_template_directory_uri().'/script/jquery/js.js');
                wp_register_script('jquery', get_template_directory_uri().'/script/jquery/jquery.stellar.min.js');
                wp_register_script('jquery', get_template_directory_uri().'/script/jquery/waypoints.min.js');
                wp_register_script('jquery', get_template_directory_uri().'/script/jquery/jquery.easing.1.3.js');
                wp_enqueue_script('jquery');
                wp_enqueue_script('ajaxpager', get_template_directory_uri() . '/script/quickpager/quickpager.jquery.js');
                wp_enqueue_script('my-commons', get_template_directory_uri().'/script/common.js' );
    
                wp_enqueue_script('elastic', get_template_directory_uri().'/script/elastic/jquery.elastic.source.js' );
                wp_enqueue_script('jscolor', get_template_directory_uri().'/script/jscolor/jscolor.js' );
    
                if ( is_singular() ) wp_enqueue_script( 'comment-reply' );
            ?>
    esmi

    (@esmi)

    Never, EVER, de-register the core version of jQuery!

    Cerzky

    (@cerzky)

    I understand not to deregister… Although my jquery is not loading right and my plugin doesn’t work without jquery. Perhaps the jquery is loading after the other scripts I am loading which require jquery? I am confused… seems like this is not the only person with the same problem as I. Why not deregister if it works, when WordPress core jquery isn’t working.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Jquery and Functions not working’ is closed to new replies.