Support Forum
My template is so complex, there are hundreds of php files. No one is called bootstrap.js or something.
i can't start a forum without image upload.
On the support forum of my template, some people ask the question too and someone fixe the problem with this code in his function.php :
add_action('wp_enqueue_scripts', 'deregister_pl_bootstrap', 100);
function deregister_pl_bootstrap() {
if(sp_is_forumpage()) {
wp_dequeue_script('pagelines-bootstrap-all');
}
}
But it's not working for me.
Can i give you an admin access to my site and/or ftp access to all my files, so you can look. i'm not in a hurry, you can take your time!
Before we go there - and having admin access is not a great way to try and solve these sort of things - have you actually tried this - which is a fix for pagelines that has worked for others? -
YELLOW
SWORDFISH
|
I tried this solution too, but i don't have action.site.php.
the solution you gave by the past are for Pagelines Framework, it's an old theme. I use Pagelines DMS2, wich is a totaly new theme. That's probably why all the solution doesn't work.
in the new theme, i found 7 php files that have the word "bootstrap" in it. and also xml, js, less and css files.
I will try to look and find which php files to modify and try the old solution, maybee...
IT WORK'S!!!
In the file lib.head.php, i changed the line
wp_enqueue_script( 'pagelines-bootstrap-all', PL_JS . '/script.bootstrap.min.js', array( 'jquery' ), '2.2.2', true );
by this line
wp_enqueue_script( 'pagelines-bootstrap-all', PL_JS . '/script.bootstrap.min.js', array( 'jquery' ), '2.2.2', false );
and in the forum options, i checked "load javascript in the footer"
all the site look's to work fine, and now, i can load picture in the forum!
I'm not sure to understand what i've done exactly, do i disabled bootstrap on my site? or just the place where it loads?
And a last question, when a new release of my template will be available, do i have to change the code again? Probably yes
yes, you are likely to have to change it in the theme again... the wp devs have mentioned considering adding bootstrap to core in which case it would be easy for them to control the loading order... until then, theme authors who continue to bump against existing wp libraries will have this potential issue...
Visit Cruise Talk Central and Mr Papa's World
1 Guest(s)