Support Forum

Problems after upgrading to v5

21 Answers

New Answer

IN investor
investor
Member

This is how it looks:

function tz_register_js() {
if (!is_admin()) {
// comment out the next two lines to load the local copy of jQuery
wp_deregister_script(‘jquery’);
wp_register_script(‘jquery’, ‘https://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js’); /* ‘http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js’); */
wp_register_script(‘validation’, ‘http://ajax.microsoft.com/ajax/jquery.validate/1.7/jquery.validate.min.js’, ‘jquery’);
wp_register_script(‘coda-slider’, get_bloginfo(‘template_directory’) . ‘/js/jquery.coda-slider-2.0.js’, ‘jquery’);
wp_register_script(‘jquery-easing’, get_bloginfo(‘template_directory’) . ‘/js/jquery.easing.1.3.js’, ‘jquery’);
wp_register_script(‘poshytip’, get_bloginfo(‘template_directory’) . ‘/js/jquery.poshytip.min.js’, ‘jquery’);
wp_register_script(‘superfish’, get_template_directory_uri() . ‘/js/superfish.js’, ‘jquery’);
wp_register_script(‘tabbed’, get_template_directory_uri().’/js/jquery.tabbed-widget.js’, array(‘jquery-ui-tabs’));
wp_register_script(‘jquery-ui-custom’, get_template_directory_uri() . ‘/js/jquery-ui-1.8.5.custom.min.js’, ‘jquery’);

wp_enqueue_script(‘jquery’);
wp_enqueue_script(‘coda-slider’);
wp_enqueue_script(‘poshytip’);
//wp_enqueue_script(‘jquery-easing’);
wp_enqueue_script(‘tabbed’);
wp_enqueue_script(‘jquery-ui-custom’);
wp_enqueue_script(‘superfish’);
wp_enqueue_script(‘validation’);
}

YS Yellow Swordfish
Yellow Swordfish
Member

Try changing that lot for this lot:

function tz_register_js() {
if (!is_admin()) {
//     comment out the next two lines to load the local copy of jQuery
//    wp_deregister_script('jquery');
//    wp_register_script('jquery', 'https://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js'); /* 'http://ajax.googleapis.com/aja…..ery.min.js'); */
    wp_register_script('validation', 'http://ajax.microsoft.com/ajax…..n.js', 'jquery');
    wp_register_script('coda-slider', get_bloginfo('template_directory') . '/js/jquery.coda-slider-2.0.js', 'jquery');
    wp_register_script('jquery-easing', get_bloginfo('template_directory') . '/js/jquery.easing.1.3.js', 'jquery');
    wp_register_script('poshytip', get_bloginfo('template_directory') . '/js/jquery.poshytip.min.js', 'jquery');
    wp_register_script('superfish', get_template_directory_uri() . '/js/superfish.js', 'jquery');
    wp_register_script('tabbed', get_template_directory_uri().'/js/jquery.tabbed-widget.js', array('jquery-ui-tabs'));
//    wp_register_script('jquery-ui-custom', get_template_directory_uri() . '/js/jquery-ui-1.8.5.custom.min.js', 'jquery');

    wp_enqueue_script('jquery');
    wp_enqueue_script('jquery-ui-core');
    wp_enqueue_script('coda-slider');
    wp_enqueue_script('poshytip');
//    wp_enqueue_script('jquery-easing');
    wp_enqueue_script('tabbed');
//    wp_enqueue_script('jquery-ui-custom');
    wp_enqueue_script('superfish');
    wp_enqueue_script('validation');
}

Note the changes carefully. Some lines are commented out. Also in the second block the second line is new. Giive that a try. Empty your browser cache before you do by the way

IN investor
investor
Member

Does not seem to work. The slider on homepage stopped working, and the editor does not appear when I try to open a new topic or reply.

IN investor
investor
Member

Edit: topics and reply works now! but slider still not working..

YS Yellow Swordfish
Yellow Swordfish
Member

Try uncommenting this line:

//wp_enqueue_script(‘jquery-easing’);

again – refresh browser cache before trying again. And if all falls part comment it out again!

You’re close now – we’ll get this sucker working!

IN investor
investor
Member

You’re the best Swordfish! Have tried browsing around the website and looks like everything works now. Thank you very much 🙂