Support Forum
It sounds like your WP theme (or possibly another WP plugin) is loading the 'BootStrap' JavaScript library which is unsupported by WordPress and clashes with the WP standard and supported jQuery UI library.
See if that is the case in the generated HTML source.
There are many topics on this subject in the forums! It can be dealt with. The key is to ensure that jQuery Ui is loaded AFTER BootStrap...
YELLOW
SWORDFISH
|
Thanks for your response, in the generated html source of the new post page of the forum, i find this in this order
<script type='text/javascript' src='http://www.laprocidachevorrei.it/wp-includes/js/jquery/jquery.ui.touch-punch.js?ver=0.2.2'></script>
<script src="http://www.laprocidachevorrei.it/wp-content/themes/blue-planet/js/bootstrap.min.js?ver=3.0.0" type="text/javascript"></script>
So the problem maybe what you said.
But now how i can solve the problem? Where i must go to modify the js load order?
Thanks in advance
No easy answer to that. Although if you search for 'bootstrap' on the forums here you will find several solutions. It so much depends upon the WordPress theme you are using and how it does things.
But for starters - if your WordPress theme has a custom admin panel for custom JS then you could try the soliution posted here:
YELLOW
SWORDFISH
|
Then the two options are either to talk to the author of the theme and ask them how to correct their use of a non-WP supported library. Or to find out where the code is being loaded in the theme and edit the loading sequence. As I said - there are various - probably half a dozen - examples in the forum threads from different themes where users have supplied code answers.
YELLOW
SWORDFISH
|
Ok solved with help from the theme author (thanks a lot)
For who use the blue planet theme the solution is:
Bootstrap script is loaded in `blue_planet_scripts` function in functions.php. Unfortunately I forgot to make that function overridable from child theme. So you need to modify core file for now. In the future version, I will make this function overridable.
Around line 153, you can find statement to include bootstrap script. Replace that line with following.
wp_enqueue_script('bootstrap-script',get_template_directory_uri().'/js/bootstrap.min.js', array(),'3.0.0', FALSE);
Thanks for your support
1 Guest(s)