Support » Plugin: Easy FancyBox » Not working inside Gravity Forms

  • Resolved mores


    Installed the plugin, and it works in normal pages and posts.
    Now I added a link to a PDF as part of a gravity form field, and here the fancybox just doesn’t work. Tried adding the class but to no avail.

    As far as I can tell there is no issue with other plugins because it works on a regular page. I suspect it has got to do something with the fact that the listener doesn’t listen to something that’s outside a regular the_content part.

    Any ideas how to get it working?

Viewing 1 replies (of 1 total)
  • Plugin Author RavanH



    FancyBox is not aware of the new content when loaded via Ajax like in your case.

    You can either disable the Ajax load option in gForms or try the following.

    FancyBox needs a trigger like “post-load” to rescan for new media links after the gform content has loaded. This could be done by adding this script snippet to the theme footer.php or a text widget (for example):

    <script type="text/javascript">
        jQuery(document).bind('gform_post_render', function(){

    Hope that helps 🙂

Viewing 1 replies (of 1 total)
  • The topic ‘Not working inside Gravity Forms’ is closed to new replies.