Support Forum
Hi,
I have just found that in my functions file I do include a minified script, I tried removing this and it resolved my problem.
This script is used on an image slider. What is the way around this conflict as I do need the script below?
//Use jQuery from Google Code
wp_register_script('jquery-tools', 'http://www.pcmi.org/jquery.tools.min.js');
wp_enqueue_script('jquery-tools');
I have seen multiple wp support forum issues with jquery tools... depending on where its loaded... can you make it be the first thing loaded?
also doesnt the tools need to ensure that jquery is loaded fist? I dont see a dependency...
wp_register_script('jquery-tools', 'http://www.pcmi.org/jquery.tools.min.js', array('query'));
Visit Cruise Talk Central and Mr Papa's World
Hi Mr Pappa
I have these scripts loading via my functions.php file.
function load_my_scripts() {
//don't use (deregister) WP's jQuery version
//wp_deregister_script( 'jquery' );
//Use jQuery from Google Code
wp_register_script('jquery-tools', 'http://www.pcmi.org/jquery.tools.min.js');
wp_enqueue_script('jquery-tools');
//Include one of my custom javascript files
wp_register_script('scrollable', 'http://www.pcmi.org/js/scrollable.js');
wp_enqueue_script('scrollable');
//Include one of my custom javascript files
wp_register_script('swfobject', 'http://www.pcmi.org/js/swfobject.js');
wp_enqueue_script('swfobject');
}
add_action('wp_enqueue_scripts', 'load_my_scripts');
Can you offer any advice for how to change to get this working along with the forum? If I remove the bold (jquery.tools.min.js) call, these profile options load into the template properly, but my slideshow stops working.
Any ideas?
two questions...
are you using the slideshow on the forum page itself?? I dont see it... but hate it when themes/plugins load their stuff when not needed... we can always help you work around this theme/plugin limitation...
but first, try what I said to do in post #12... try replacing their register script of jquery tools with my code... it will make sure that jquery is loaded first... cant tell for sure if it will help since I cannot see enough code...
If it does not work AND you dont need the slider on the forum pages, try changing the script enqueing to
if (sp_is_forumpage()) wp_enqueue_script('jquery-tools');
Visit Cruise Talk Central and Mr Papa's World
Ok I just tried that, still not working, I must be doing something wrong.
The theme I am using is a child theme of twentyeleven I have done.
To do your second suggestion I did this below is this correct? I suspect I've done it wrong!!
//Use jQuery from Google Code
wp_register_script('jquery-tools', 'http://www.pcmi.org/jquery.tools.min.js');
if (sp_is_forumpage()) wp_enqueue_script('jquery-tools');
ah, what was wrong? the slider still not working? looks like I had inverse logic... should be:
if (!sp_is_forumpage()) wp_enqueue_script('jquery-tools');
Visit Cruise Talk Central and Mr Papa's World
Correct, the ! means 'not'. Glad it's working now.
Visit Cruise Talk Central and Mr Papa's World
Hi Mr. Papa,
I am in same disgusting problem. I didn't find any jQuery code in my Function.php. Can you find out a solution for me please!
My site link is http://perfectpublishingsystem.....bers/forum
Waiting for your reply. Thank you.
1 Guest(s)