Upgraded to 1.6 and tabs stopped working

  • dave


    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.





    Moved to support. Please post in the correct section.




    Any ideas?



    Is that a plugin?




    I just added references to jquery tool’s (if you seach for the word “flowplayer” in my source code you will find the reference).

    It worked fine before I upgraded.


    Kenneth John Odle


    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.


    Syahir Hakim


    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' );



    Thanks, that worked perfectly!



    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.