Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
plugins-topic
Some other issues on my forums
Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Apr 8, 2014 - 9:32 am

no worries xDave... understand...  and we can help you sort the ordering in your theme if you like...  but I dont see a link to your site in this topic??  I know Andy has been helping you with other stuff so he may know it, but can you share a link?  or better yet, find the location in the theme where bootstrap is loaded and we can give you code to change to see if it clears it up...

Avatar
xDave
Germany
Member
sp_UserOfflineSmall Offline
Apr 8, 2014 - 9:41 am

Yeah, Andy already took a look. Its teso.trollpit.de. 

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Apr 8, 2014 - 9:48 am

so yeah, lots of bootstrap...

<script type='text/javascript' src='http://teso.trollpit.de/wp-content/themes/oblivion/js/bootstrap-transition.js?ver=3.8.1'></script>
<script type='text/javascript' src='http://teso.trollpit.de/wp-content/themes/oblivion/js/bootstrap-tooltip.js?ver=3.8.1'></script>
<script type='text/javascript' src='http://teso.trollpit.de/wp-content/themes/oblivion/js/bootstrap-button.js?ver=3.8.1'></script>
<script type='text/javascript' src='http://teso.trollpit.de/wp-content/themes/oblivion/js/bootstrap-carousel.js?ver=3.8.1'></script>
<script type='text/javascript' src='http://teso.trollpit.de/wp-content/themes/oblivion/js/bootstrap-collapse.js?ver=3.8.1'></script>
<script type='text/javascript' src='http://teso.trollpit.de/wp-content/themes/oblivion/js/bootstrap-modal.js?ver=3.8.1'></script>

now what is interesting here is that the theme is also loading its own version of jquery ui (think Andy mentioned that before too)...  and its loading it after bootstrap stuff so that is good...

the actual problem may be the loading of its own version of jquery ui instead of using the jquery ui that comes with wp...  obviously, plugins can only test and expect the wp version, not some custom one...

I would try a quick test of where its loading its own jquery ui and switch it over to the wp version and see if it works or any ill side effects on the theme... can you find that loading in the theme?

Avatar
xDave
Germany
Member
sp_UserOfflineSmall Offline
Apr 9, 2014 - 5:08 am

Could be this. Should I try what happens when I comment the bootstrap6 stuff out?

wp_register_script( 'bootstrap1', get_template_directory_uri().'/js/bootstrap-transition.js','','',true);
wp_enqueue_script('bootstrap1');
wp_register_script( 'bootstrap2', get_template_directory_uri().'/js/bootstrap-tooltip.js','','',true);
wp_enqueue_script('bootstrap2');
wp_register_script( 'bootstrap3', get_template_directory_uri().'/js/bootstrap-button.js','','',true);
wp_enqueue_script('bootstrap3');
wp_register_script( 'bootstrap4', get_template_directory_uri().'/js/bootstrap-carousel.js','','',true);
wp_enqueue_script('bootstrap4');
wp_register_script( 'bootstrap5', get_template_directory_uri().'/js/bootstrap-collapse.js','','',true);
wp_enqueue_script('bootstrap5');
wp_register_script( 'bootstrap6', get_template_directory_uri().'/js/bootstrap-modal.js','','',true);
wp_enqueue_script('bootstrap6');

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Apr 9, 2014 - 7:48 am

You seem to be looking at the right code so in the right area. I wouldn't comment it out though - that would almost certainly upset other stuff.

What else is around this code? What about jQuery and the jQuery UI scripts? Are they being loaded near there as well and if so could you paste the whole lot? Using the Syntax Highlighter button would be best. Paste the code. Select it carefully and then click on the button on the toolbar and specify php.

andy-signature.png
YELLOW
SWORDFISH
Avatar
xDave
Germany
Member
sp_UserOfflineSmall Offline
Apr 9, 2014 - 9:36 am

Erm..its abot 1.200 lines....I´ll attach it.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Apr 9, 2014 - 9:15 pm

first thing I would try is change:

wp_register_script( 'custom_js2',  get_template_directory_uri().'/js/jquery-ui-1.10.3.custom.min.js','','',true);

to

wp_enqueue_script('jquery-ui', false, array('bootstrap6', '', true)

Avatar
xDave
Germany
Member
sp_UserOfflineSmall Offline
Apr 10, 2014 - 2:49 am

This only gives me a "white page"after the change. 

 

wp_register_script('jquery-ui', false, array('bootstrap6', '', true);
wp_enqueue_script('jquery-ui');
Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Apr 10, 2014 - 4:38 am

Well to start with that is not the code that Steve suggested you use....

andy-signature.png
YELLOW
SWORDFISH
Avatar
xDave
Germany
Member
sp_UserOfflineSmall Offline
Apr 10, 2014 - 9:02 am

You are right Andy. I exchanged it now but the effect is pretty much the same. The only thing i changed now ist a Semikolon, I added at the end.

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 619
Members: 17363
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625