Support Forum
Hello,
I have the same problem as:
https://simple-press.com/suppo.....esponsive/
https://simple-press.com/suppo.....ad-images/
Both solutions do not bring success.
With
add_action( 'wp_enqueue_scripts', 'deregister_pl_bootstrap' ); | |
2 | |
3 | function deregister_pl_bootstrap() { |
4 | if(sp_is_forumpage()) { |
5 | wp_deregister_script('pagelines-bootstrap-all'); |
6 | } |
7 | } |
I get a white background and the button "Add Topic" and "Add Reply" don't work.
When I change
wp_register_script( 'pagelines-bootstrap-all', PL_JS . '/script.bootstrap.min.js', array( 'jquery' ), '2.3.1', false);
nothing happens.
Is there another solution?
Thanks
Meli
the real solution is for themes to not load a library known to conflict with js loaded by WP...
fixing the theme can be problematic since there are a bunch of options which could cause different sequencing per user...
in that first link, did you do the final solution which was to make sure wp jquery ui was loaded after bootstrap to keep it from stomping on the wp js??
Visit Cruise Talk Central and Mr Papa's World
I have slept since then so dont remember the exact change and dont have access to that site anymore...
but think it was this change:
https://simple-press.com/suppo.....2/#p128084
to force bootstrap to load in header... then you have to force the forum js to load in the footer on the forum - integration - page and permalink panel...
Visit Cruise Talk Central and Mr Papa's World
Now it works.
1. Edit in the action.sites.php, this line
wp_register_script( 'pagelines-bootstrap-all', PL_JS . '/script.bootstrap.min.js', array( 'jquery' ), '2.3.1', false);
2. Set the parameter under "Forums->Integration->Page and Permalink->Integration Options->Load javascript in footer"
Thank you very much!
Meli
yeah! glad its working... thanks for the update.
Visit Cruise Talk Central and Mr Papa's World
1 Guest(s)