Support Forum
Okay, it appears I found where js is being loaded. It is under theme-scripts.php. I have cut and pasted the code from the page so you can see it. If you are going to instruct me as to how to change this, please be very specific--I know very little about what I am doing. Much appreciated!
<?php function my_script() { if (!is_admin()) { wp_deregister_script('jquery'); wp_register_script('jquery', get_bloginfo('template_url').'/js/jquery-1.4.2.min.js', false, '1.4.2'); wp_enqueue_script('jquery'); wp_enqueue_script('prettyphoto', get_bloginfo('template_url').'/js/jquery.prettyPhoto.js', array('jquery'), '2.5.6'); wp_enqueue_script('cufon-yui', get_bloginfo('template_url').'/js/cufon-yui.js', array('jquery'), '1.0.9'); wp_enqueue_script('Tuffy', get_bloginfo('template_url').'/js/Tuffy_500-Tuffy_700.font.js', array('jquery')); wp_enqueue_script('fade', get_bloginfo('template_url').'/js/fade.js', array('jquery')); wp_enqueue_script('jqFancyTransitions', get_bloginfo('template_url').'/js/jqFancyTransitions.1.8.min.js', array('jquery'), '1.8'); wp_enqueue_script('s3Slider', get_bloginfo('template_url').'/js/s3Slider.js', array('jquery')); wp_enqueue_script('cycle', get_bloginfo('template_url').'/js/jquery.cycle.all.min.js', array('jquery'));
} } add_action('init', 'my_script'); ?>
again, its best to use the code button when post coding... much, much easier to read...
assuming this is what it really looks like:
<?php function my_script() { if (!is_admin()) { wp_deregister_script('jquery'); wp_register_script('jquery', get_bloginfo('template_url').'/js/jquery-1.4.2.min.js', false, '1.4.2'); wp_enqueue_script('jquery'); wp_enqueue_script('prettyphoto', get_bloginfo('template_url').'/js/jquery.prettyPhoto.js', array('jquery'), '2.5.6'); wp_enqueue_script('cufon-yui', get_bloginfo('template_url').'/js/cufon-yui.js', array('jquery'), '1.0.9'); wp_enqueue_script('Tuffy', get_bloginfo('template_url').'/js/Tuffy_500-Tuffy_700.font.js', array('jquery')); wp_enqueue_script('fade', get_bloginfo('template_url').'/js/fade.js', array('jquery')); wp_enqueue_script('jqFancyTransitions', get_bloginfo('template_url').'/js/jqFancyTransitions.1.8.min.js', array('jquery'), '1.8'); wp_enqueue_script('s3Slider', get_bloginfo('template_url').'/js/s3Slider.js', array('jquery')); wp_enqueue_script('cycle', get_bloginfo('template_url').'/js/jquery.cycle.all.min.js', array('jquery')); } } add_action('init', 'my_script'); ?>
then just try deleting these two lines:
wp_deregister_script('jquery'); wp_register_script('jquery', get_bloginfo('template_url').'/js/jquery-1.4.2.min.js', false, '1.4.2');
that will tell it to use the wp version instead of its own version... but if the theme is really coded to use the ancient version of jquery, may need to get more fancy...
Visit Cruise Talk Central and Mr Papa's World
as I said in my post, try deleting them... bad things may occur if you theme relied on outdated, ancient jquery from 1.4.2... in which case we would have to get fancier...
Visit Cruise Talk Central and Mr Papa's World
Am about to remove the two lines that you have suggested. The question I wanted answered first is, if removal of the two lines causes problems, can the lines simply be re-inserted in order to remedy the problems caused by removing them? Thanks. (The less you know, the more cautious you become.)
blank spaces or not doesnt matter... its usually easier just to comment them out so you can easily restore if needed...
to comment out put a # or // in front of the line... so
// wp_deregister_script('jquery'); // wp_register_script('jquery', get_bloginfo('template_url').'/js/jquery-1.4.2.min.js', false, '1.4.2');
Visit Cruise Talk Central and Mr Papa's World
Alright. Went ahead and inserted // in front of the two lines. Refreshed the site, and still no response from the Add a Comment Buttons. All other buttons working fine. My MORON of a developer cannot find the license number for Evanto (MiniBuzz) that he received when he purchased. So, right now I cannot ask them about the problem.
How are the JS errors now? Is it still loading the ancient version?
sorry, Add a Comment Button? do you mean add topic or add reply?
you still had the jquery updater plugin active so that was keeping wp from loading its copy of jquery... I deactivated it and now wp is loading its version...
I still see one js error from the theme fade.js file... but the add topic and add reply buttons work for me...
give it a try...
Visit Cruise Talk Central and Mr Papa's World
Yes, sorry, I mean the Add Topic button. Was excited to hear that the buttons were working for you after the deactivation of jquery updater. Alas, when I tried it this morning after reloading the site, none of the buttons and links that were working fine before, including Members button, and the links to the four forums (Barn Owl Biology, etc) were working. However, I was using IE. When I switched to Firefox, everything worked fine including the Add Topic buttons. So right now, all we are dealing with is some kind of glitch in IE. Am using IE 10.
Seems like we might be a tweak away?
1 Guest(s)