Skip to content Skip to sidebar Skip to footer

Jquery Scripts Not Working In Wordpress, Tried Multiple Enqueue Methods

I've searched through similar questions, but didn't find an answer yet. On my Wordpress dev site using the Genesis framework, I tried using the following jquery scripts: smoothscro

Solution 1:

The CSS-tricks code wasn't working for me either, but this is

add_action( 'init', 'jquery_register' );
function jquery_register() {
if ( !is_admin() ) {
wp_deregister_script( 'jquery' );
wp_register_script( 'jquery', ('http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js' ), false, null, true );
wp_enqueue_script( 'jquery' );
}
}

Or any other jquery version...

Post a Comment for "Jquery Scripts Not Working In Wordpress, Tried Multiple Enqueue Methods"