WordPress.org

Forums

Easy FancyBox
[resolved] Inline fancybox opening entire page (12 posts)

  1. jen697
    Member
    Posted 2 years ago #

    Here is my code:

    Download the <a href="#sample_chapter" class="fancybox">Sample Chapter</a>.
    <div style="display:none" class="fancybox-hidden">
       <div id="sample_chapter" style="width:460px;height:380px;">
       content here.
       </div>
    </div>

    My problem is that the link opens the entire page in the fancybox and not the content in the sample_chapter div. I checked the code against what is in your FAQ and it looks okay. I also tried re-saving the Media Settings that enables fancybox for Images and Inline Content. Not sure what I am missing?

    Thanks!

    http://wordpress.org/extend/plugins/easy-fancybox/

  2. RavanH
    Member
    Plugin Author

    Posted 2 years ago #

    Your code seems correct so there must be something else interfering here. Usually, it is an external click/link tracking plugin that prepends the #sample_chapter inside the href with the full path which results in the link opening the full page inside an iframe.

    If you are running any plugin like one of the many Google Analytics plugins that does click tracking, disable it to see if that changes anything. If it does, then you know you need to look for an option in the plugin settings to disable the feature that is responsible for the issue(try different options). Or switch to another analytics plugin like Google Analyticator which I use on many sites together with FancyBox and even does a nice graph on the Dashboard too :)

  3. jen697
    Member
    Posted 2 years ago #

    Thanks, you were absolutely right! I have Google Analytics for WordPress by Yoast installed and as soon as I deactivated it, fancybox worked correctly. :) I can't figure out what settings would fix this though, so I'll take this over to the analytics plugin's support forum and see if Yoast knows how to fix it.

    Thanks for all your help! :)

  4. RavanH
    Member
    Plugin Author

    Posted 2 years ago #

    as far as I can remember, it's something to do with outbound link tracking...

  5. jen697
    Member
    Posted 2 years ago #

    Yeah I tried unchecking the box to "Track outbound clicks & downloads" but it didn't fix it. :( It also doesn't look like I'll be getting a response from the Yoast Analytics plugin support forum so I'll have to find a new plugin I guess.

  6. RavanH
    Member
    Plugin Author

    Posted 2 years ago #

    Does that plugin provide particular options that you do not find in other GA plugins?

    I can recommend Google Analyticator. It might be simpler that Yoasts plugin but it does the job for normal tracking. Plus it adds a basic graph to your dashboard.

  7. jen697
    Member
    Posted 2 years ago #

    I checkout out the Analyticator plugin but a few weeks ago the author said that he will no longer be supporting the plugin, and that Google recently changed their API which he does not have the time to update the plugin support to support the new API. :(

    Do you have any other suggestions for good google analytics plugins?

  8. RavanH
    Member
    Plugin Author

    Posted 2 years ago #

    Hmmm... that's bad news. Will have to start looking out for an alternative too then. In the mean time, it still seems to be working :)

  9. Pete
    Member
    Posted 2 years ago #

    RavanH i'm having the same problem the inline fancybox is opening the entire page. I have no other plugins enabled on this site.

  10. RavanH
    Member
    Plugin Author

    Posted 2 years ago #

    @Pete make sure you create your link NOT using a full URL but only the #ID... Do you have a link where I can see the issue maybe?

  11. Pete
    Member
    Posted 2 years ago #

    I am using the same example code as on the plugin page using just #ID, where can I email you a private link?

  12. RavanH
    Member
    Plugin Author

    Posted 2 years ago #

    You can contact me via http://status301.net/contact-en/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.