WordPress.org

Support

Support » How-To and Troubleshooting » Are there any changes to jQuery in WP 2.9?

Are there any changes to jQuery in WP 2.9?

  • Hi!

    As asked in the title: Are there any changes made to the use of jQuery in WP 2.9? I used the jQuery idTabs in my sidebar. Until upgrading to WP 2.9 it worked fine but now it doesn´t. When i take a look into my source code there will be no js loaded like in 2.8.6.

    To get it working in 2.8 i added the following code into my functions.php:

    <?php
    $themes = get_themes();
    $script = $themes[get_current_theme()]['Template Dir'] . "/js/jquery.idTabs.min.js";
    if ( file_exists(WP_CONTENT_DIR . $script) ) {
    wp_enqueue_script('jquery.idTabs.min.js', WP_CONTENT_URL . $script, array('jquery'));
    }
    ?>

    The js file is still at the same place but it will not be loaded. I didn´t change anything related to my theme. Any ideas?

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Are there any changes to jQuery in WP 2.9?’ is closed to new replies.
Skip to toolbar