Support Forum

Start Upload Button Not Working on Image/File Uploader

19 Answers

New Answer

YS Yellow Swordfish
Yellow Swordfish
Member

Ah – this shouod be it…

Go back to the file you edited earlier and find this line near the top:

wp_register_script('sf-bootstrap-js', get_template_directory_uri() . '/js/bootstrap.min.js', 'jquery', NULL, TRUE);

Can you change that true at the end to false?

 

ML Maria Lehman
Maria Lehman
Member

I changed the line so it reads like this:

 wp_register_script(‘sf-bootstrap-js’, get_template_directory_uri() . ‘/js/bootstrap.min.js’, ‘jquery’, NULL, FALSE);

 

Is that correct? If so, the problem still persists — the Start Upload button doesn’t work.

YS Yellow Swordfish
Yellow Swordfish
Member

Yes that was right but looking at the generated html source code on your site I see that the bootstrap file is STILL being loaded after jQuery UI. And I really am not sure why (Steve: Any ideas?) it is still doing that.

One last thing before we dig deeper. Go to the forum admin > Integration > Page and Permalink and turn on the option to ‘Load javascript in footer’. Might just tip the balance…

ML Maria Lehman
Maria Lehman
Member

That’s it! It worked!

Thanks so much to both of you for your help.

YS Yellow Swordfish
Yellow Swordfish
Member

Sorry it took so long to figure it out!
meanwhile we just wish theme authors did not use these non-WP standard libraries which makes life a problem for their users.