Support Forum
Well we can but try! But - you will have to do some hunting.
Start with the WP Theme. Look in the header template but - more likely will be the functions.php file. You are looking for:
(1) a reference to 'ajax.googleapis.com' and -
(2) a reference to 'jquery-ui-1.8.5.custom.min.js'.
See if you can copy and paste the code where you find these - remember to use the code button on the toolbar though - paste the code, highlight it and then select the php from the code dropdown.
YELLOW
SWORDFISH
|
I searched the theme support forum for similar problems and fould a way to revert back to a previous version of jQuery. Replaced
wp_register_script('jquery', 'http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js');
with
wp_register_script('jquery', 'https://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js');
in functions.php
(sry did not understand what you meant by code button..?)
I dont know if this was what you were thinking, but it seems to have fixed the topic problem. Still cannot add a reply however..
This line is also located in functions.php:
wp_register_script('jquery-ui-custom', get_template_directory_uri() . '/js/jquery-ui-1.8.5.custom.min.js', 'jquery');
No that wont change anything.
Let's take these one at a time starting with the first one.
Can I assume there was a line before that starting with 'wp_deregister_script' and ine after it starting with wp_enqueue_script'? If so can you please copy all three lines and post themn to me.
Is this the same for the second one as well?
YELLOW
SWORDFISH
|
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');
}
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
YELLOW
SWORDFISH
|
1 Guest(s)