Upgraded to 1.6 and tabs stopped working
-
site shortcode: acq1.com/f
My front page uses Jquery tools tabs. They stopped working upon the upgrade from 1.5 to 1.6. I assume there was some change to the scripts that are called that is getting in the way. I was considering trying to stop calls to various scripts one by one, but have no idea how to do that.
Thoughts?
Thanks!
Moved to support. Please post in the correct section.
Is that a plugin?
Mod
They stopped working upon the upgrade from 1.5 to 1.6.
I believe that 1.6 now only loads jQuery on pages with the slider, such as the front page. Since you don’t have the slider on the front page, jQuery is not loaded. Try activating the slider, reloading the page, and seeing if your tabs work.
Admin
Ken is correct, the jQuery Tools library is now only loaded on pages where it is needed, i.e. pages where the slider is displayed. To load jQuery Tools on all pages, add this to your child theme’s
functions.php
file:function custom_enqueue_scripts(){
if ( ! is_admin() ) { // Front-end only
wp_enqueue_script( 'graphene-jquery-tools' );
}
}
add_action( 'wp_enqueue_scripts', 'custom_enqueue_scripts' );I was confused since I already had the following, but I am guessing some script names may have changed or something. Anyway, I replaced the following with your new code and it works perfect.
function graphene_enqueue_scripts_custom(){
wp_enqueue_script( 'jquery-tools' );
}
add_action('init', 'graphene_enqueue_scripts_custom');
Viewing 9 posts - 1 through 9 (of 9 total)
- You must be logged in to reply to this topic.