Easy FancyBox
[resolved] fancy box iframe window size problem. (7 posts)

  1. agis.apostolopoulos
    Posted 4 years ago #

    Hi, I've downloaded the easy fancy box Version for my wordpress 321 website. In this version the class (class="fancybox-frame" ) is not working, though (class="fancybox iframe") will work just fine.
    Another problem i'm having is when I set custom iframe window size in the Media settings, the new window size is not working. I tried to handcod the new size attributes in the link but that would not work either!?

    here is my code

    and here is the link with the handcoded size attributes

    My page is

    any advise please?
    thanks you


  2. agis.apostolopoulos
    Posted 4 years ago #

    reposting my code...

    class="fancybox iframe"

    class="fancybox iframe{width:800,height:600}"

  3. RavanH
    Plugin Author

    Posted 4 years ago #

    Hi, there are several things going wrong at once:

    1. with my plugin, you need class="fancybox-iframe" (not fancybox-frame; notice the missing i)
    2. your theme has the fancybox script already included, it is incompatible with my plugin (but might be made compatible)
    3. some other plugin (?) is loading thickbox as well, which might cause conflict with fancybox
    4. you need to put a space between the main class name and the metadata class="fancybox-iframe {width:800,height:600}"
    5. the link you are using has an onclick event that might be interfering:
    <a class="fancybox iframe{width:800,height:600}" href="http://www.phasma.com" onclick="javascript:_gaq.push(['_trackEvent','outbound-article','http://www.phasma.com']);">+</a>

    I suspect that onclick event comes from the Google Analytics plugin. You might get rid of it by unchecking the outbound link tracking option...

    These are just the first issues I notice looking at your site source but I have no idea which one(s) is (are) the actual cause...

  4. RavanH
    Plugin Author

    Posted 4 years ago #

    But you can be sure that #2 (the theme including FancyBox for a second time in the footer) is sure to cause issues...

  5. ssalter
    Posted 4 years ago #

    WP 3.1.2, twenty eleven template

    I have a resize problem as well. I have a text widget in my sidebar that contains the following:

    <a class="fancybox-iframe {width:600,height:500}" href="path-to-external-html-file">HERE</a>

    I always get a "large" iframe. I do use easy fancybox elsewhere on the site for images, videos, and an external php page. They all fit fine in the resulting fancybox iframe and are different sizes, naturally. But this one is a problem!

    I'm loading a page with the jquery jdigiclock module.

    It loads fine and works great, it is just the iframe that is so large!

  6. RavanH
    Plugin Author

    Posted 4 years ago #

    ssalter, do you have a link?

  7. ssalter
    Posted 4 years ago #

    Hi RavanH, I just embedded the page I wanted to include with the pageview plugin. It is fine. A fancybox popup would have been nice but this works. Thanks though!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic