Easy FancyBox
iFrames not working (3 posts)

  1. barero
    Posted 4 years ago #

    Hello -

    I use Easy Fancy Box on a few other website and haven't had a problem until now. I have a site with a custom designed/programmed wordpress theme and I can't get iFrames to work. Here is the code I'm using:

    View the 2012 catalog

    Instead of the pdf showing up in an iFrame, it automatically opens a new page with the pdf in a google viewer. Check out the page here, the link is under BookmarkTrendz "View the 2012 catalog"


    Any help is appreciated! Thanks!


  2. barero
    Posted 4 years ago #

    Sorry, here is the code I'm using:

    <a class="fancybox-iframe" href="http://docs.google.com/gview?url=http://www.dnasales.com/wp-content/uploads/2012/02/BookmarkTrendz-2012.pdf&embedded=true">View the 2012 catalog</a>

  3. RavanH
    Plugin Author

    Posted 4 years ago #

    The main jQuery library gets loaded multiple times, breaking all FancyBox added functions... First comes the usual WordPress included version, which is correct but then there is the glideshow plugin that includes it's own hardcoded version:

    <script type="text/javascript" src="http://www.dnasales.com/wp-content/plugins/wp-glideshow/scripts/jquery.min.js"></script>

    And then there is some kind of form validation plugin (or is it the theme?) that inserts this a third one:

    <script language="javascript" src="http://code.jquery.com/jquery-1.5.js"></script>

    You'll have to get rid of (or hack) these plugins that do not abide by the WordPress enqueue script conventions but use hard-coded script inclusion before FancyBox has any chance of working...

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic