Support Forum
well, its still trying to load it... but does not appear to be finding it...
I am seeing a js error from all.js - something to do with facebook... not sure if critical...
and the google apis jquery ui is still being loaded...
Visit Cruise Talk Central and Mr Papa's World
how? guests cannot post...
plus whatever is loading the googleapis should just load the wp verison... if you can find where its loaded, we can help fix it... usually in header.php or functions.php if the theme...
Visit Cruise Talk Central and Mr Papa's World
This is from my functions.php. I've tried removing this
wp_enqueue_script('jqueryui', 'https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/jquery-ui.min.js', array('jquery'));
but if I do the Add reply button won't do anything.
/*************************** Enqueue Scripts ***************************/
function gp_enqueue_scripts() {
if(!is_admin()){
wp_enqueue_script('jquery');
wp_enqueue_script('jqueryui', 'https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/jquery-ui.min.js', array('jquery'));
if(is_singular()) wp_enqueue_script('comment-reply');
wp_enqueue_script('swfobject', 'http://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js');
wp_enqueue_script('jwplayer', get_template_directory_uri().'/lib/scripts/mediaplayer/jwplayer.js', array('jquery'));
wp_enqueue_script('carousel', get_template_directory_uri().'/lib/scripts/jquery.carouFredSel.js', array('jquery'));
wp_enqueue_script('prettyphoto', get_template_directory_uri().'/lib/scripts/prettyPhoto/js/jquery.prettyPhoto.js', array('jquery'));
wp_enqueue_script('jqtransform', get_template_directory_uri().'/lib/scripts/jquery.jqtransform.js', array('jquery'));
}
}
add_action('wp_print_scripts', 'gp_enqueue_scripts');
first, lets change
wp_enqueue_script('jqueryui', 'https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/jquery-ui.min.js', array('jquery'));
to
wp_enqueue_script('jquery-ui-core');
wp_enqueue_script('jquery-ui-widget');
Visit Cruise Talk Central and Mr Papa's World
Mr Papa said
first, lets changewp_enqueue_script('jqueryui', 'https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/jquery-ui.min.js', array('jquery'));
to
wp_enqueue_script('jquery-ui-core');
wp_enqueue_script('jquery-ui-widget');
Ok did so. If I select edit a post, I can now type in the box and use the buttons such as bold, italics etc., however, clicking the new topic or add reply button do nothing now.
I opened the forum to allow guests to post, so feel free to test.
jQuery and the jQuery UI libraries are looking much better.
You still have the issue over the 'accordion' to resolve.
so - where you added those wp_enqueue_script calls add one more:
wp_enqueue_script('jquery-ui-accordion');
and you should be OK all being well.
YELLOW
SWORDFISH
|
Yellow Swordfish said
jQuery and the jQuery UI libraries are looking much better.You still have the issue over the 'accordion' to resolve.
so - where you added those wp_enqueue_script calls add one more:
wp_enqueue_script('jquery-ui-accordion');and you should be OK all being well.
Ok, I added that into the same place I added the others. Cleared the cache and got the same result, the button doesn't do anything.
sorry, too many pages in this thread... link to site please
Visit Cruise Talk Central and Mr Papa's World