• Resolved sockfight

    (@sockfight)


    When you click any of the “Preview” links, the image opens in a new page load rather than in FooBox, and I can’t figure out why. I have:
    * Added class=”foobox” to my anchor tag
    * Checked ‘Disable other lightboxes’ in the FooBox settings (not that I had any that I’m aware of)
    * Looked in the Console for a JS error, didn’t see one. I do see the foobox JS present in sources
    * Tried turning off WP Super Cache, just in case, but it made no difference

    I am running the Divi theme and I’m not sure how to debug this further. I would really appreciate somebody taking a look to see if they can spot the conflict. Thank you!

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author bradvin

    (@bradvin)

    Hi

    I had a look at your page, and the reason it is not binding to the links is because of the table plugin that you are using. You need to call the FooBox init after the table has finished rendering.

    You will need to add some custom jquery code to hook into the table postdraw event and then call

    FOOBOX.init();

    Thread Starter sockfight

    (@sockfight)

    Thank you for taking a look. I’ve added this code:

    
    <script>
    jQuery(document).ajaxComplete(function() {
        FOOBOX.init();
    });
    </script>
    

    and FooBox is working again. Does that seem like a reasonable solution?

    Plugin Author bradvin

    (@bradvin)

    If that works, then awesome. I assume the table is loaded by ajax with that code snippet

    Thread Starter sockfight

    (@sockfight)

    That’s right. Thank you again for your quick response and for taking a look.

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

The topic ‘Foobox not opening’ is closed to new replies.