Title: Lightbox not loading
Last modified: September 1, 2016

---

# Lightbox not loading

 *  Resolved [babyninja](https://wordpress.org/support/users/babyninja/)
 * (@babyninja)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/lightbox-not-loading-1/)
 * Hello, love the plugin and got it to work no problem on my test site, however
   for my main site [http://www.babyworldandme.co.uk](http://www.babyworldandme.co.uk)
   the lightbox isn’t loading and loads each image in a separate box. My test site
   and main site have identical plugins, so I can’t work this out. I checked the
   view source on my site which came up with this. I’m a newbie at this so any simple
   solutions and steps I can take?
 * </script>
    <script type=’text/javascript’ src=’[http://www.babyworldandme.co.uk/wp-content/plugins/siteorigin-panels/js/styling-24.min.js&#8217](http://www.babyworldandme.co.uk/wp-content/plugins/siteorigin-panels/js/styling-24.min.js&#8217);
   defer ‘></script> <script type=”text/javascript”>/* Run FooBox FREE (v1.0.14)*/(
   function( FOOBOX, $, undefined ) { FOOBOX.o = {wordpress: { enabled: true }, 
   excludes:’.fbx-link,.nofoobox,.nolightbox,a[href*=”pinterest.com/pin/create/button/”]’,
   affiliate : { enabled: false }, error: “Could not load the item”}; FOOBOX.init
   = function() { $(“.fbx-link”).removeClass(“fbx-link”); $(“.fbx-link”).unbind(“.
   prettyphoto”).unbind(“.fb”); $(“.foogallery-container.foogallery-lightbox-foobox,.
   foogallery-container.foogallery-lightbox-foobox-free, .gallery, .wp-caption, 
   a:has(img[class*=wp-image-]), .foobox”).foobox(FOOBOX.o); }; }( window.FOOBOX
   = window.FOOBOX || {}, jQuery ));
 * FooBox.ready(function() {
    //preload the foobox font jQuery(“body”).append(“<
   span style=\”font-family:’foobox’; color:transparent; position:absolute; top:-
   1000em;\”>f</span>”); FOOBOX.init();
 * [https://wordpress.org/plugins/foobox-image-lightbox/](https://wordpress.org/plugins/foobox-image-lightbox/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [babyninja](https://wordpress.org/support/users/babyninja/)
 * (@babyninja)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/lightbox-not-loading-1/#post-7664156)
 * Doh, playing around managed to solve it, had this in my theme function script.
   Removed it and now working fine! Great work on the app, really like it.
 * function defer_parsing_of_js ( $url ) {
    if ( FALSE === strpos( $url, ‘.js’ ))
   return $url; if ( strpos( $url, ‘jquery.js’ ) ) return $url; return “$url’ defer“;}
   add_filter( ‘clean_url’, ‘defer_parsing_of_js’, 11, 1 );
 *  Plugin Author [bradvin](https://wordpress.org/support/users/bradvin/)
 * (@bradvin)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/lightbox-not-loading-1/#post-7664359)
 * Hi
 * Glad you got it working! what theme do you have that includes that defer_parsing_of_js
   function?

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Lightbox not loading’ is closed to new replies.

 * ![](https://ps.w.org/foobox-image-lightbox/assets/icon-256x256.gif?rev=2667030)
 * [Lightbox & Modal Popup WordPress Plugin - FooBox](https://wordpress.org/plugins/foobox-image-lightbox/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/foobox-image-lightbox/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/foobox-image-lightbox/)
 * [Active Topics](https://wordpress.org/support/plugin/foobox-image-lightbox/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/foobox-image-lightbox/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/foobox-image-lightbox/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [bradvin](https://wordpress.org/support/users/bradvin/)
 * Last activity: [9 years, 9 months ago](https://wordpress.org/support/topic/lightbox-not-loading-1/#post-7664359)
 * Status: resolved