Upgraded to 1.6 and tabs stopped working

  • dave

    #3336

    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!

    Anonymous

    #24390

    Moved to support. Please post in the correct section.

    dave

    #24391

    Sorry.

    Any ideas?

    Anonymous

    #24392

    Is that a plugin?

    dave

    #24393

    No

    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.

    Mod

    Kenneth John Odle

    #24394

    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

    Syahir Hakim

    #24395

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

    dave

    #24396

    Thanks, that worked perfectly!

    dave

    #24397

    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.