Support » Plugin: Easy FancyBox » Showing All Gallery Images via a link Click

  • Resolved tokiwi


    This is one of the awesomest plugin I have ever come across.Period.

    I have a question:
    I have enabled “Auto-Open” on first image link and “Auto-Gallery” – All in One Gallery.
    This works great and as expected. [Sample :
    Now, without changing anything else, I don’t want to “Auto-Open” but to enable this “Auto-Gallery” when say a link with id “foo” is clicked. Is there an option to do it easily? I couldn’t find a similar request in the support questions until a couple of pages.
    I have already started looking into easyfancybox.php. Was just wondering if modifying it is the only option?

    Thank you so much.

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author RavanH



    enable this “Auto-Gallery” when say a link with id “foo” is clicked

    I do not understand what you are asking. The auto-gallery is enabled or not, dependent on your settings but not on whatever link is clicked… Do you want it disabled by default but so that a visitor can enable it by clicking a dedicated link?

    Thank you for replying @ravanh

    Yes, that is what I wanted –> “disabled by default but so that a visitor can enable it by clicking a dedicated link”.
    However, I have done that by adding a click listener in easyfancybox.php [It is hack-ish I guess]

    Plugin Author RavanH


    You could add it simply in a text widget or in footer.php maybe? So your work will not get overwritten on the next update…

    Thanks for tip.
    Perhaps, you can include this as a feature in the next release? 🙂

    Plugin Author RavanH


    I cannot promise anything for the next release but maybe a later one… What’s the code you used?

    Okay. cool.
    Oh, it’s just a one line hack (I didn’t check if it broke other stuff which I am not using) :

    Yes, it does break other functionalities.

    Plugin Author RavanH


    OK, revert to the standard unmodified plugin, then:

    1. Disable the Auto-gallery feature;

    2. Modify your theme so that your “Show All” icon link has id="fcb-onlyclick" (instead of class) and next make it so that the theme does not append rel="portfolio" to the “Zoom In” image links. It depends on your theme how/where you can do this, maybe somewhere in the functions.php…

    3. And finally paste this code in a sidebar widget:

    <script type=”text/javascript”>
    jQuery(‘#fcb-onlyclick’).click(function() { jQuery(‘.fancybox’).attr(‘rel’, ‘gallery’); });

    Then let me know 😉

    Thanks RavanH.
    I think I followed everything you mentioned (except that I added the script in the footer) but I didn’t work. Perhaps I missed something. I will give it a try again, soon.

    Thank you so much for your help and the wonderful plugin.

    Plugin Author RavanH


    If you can give me a link where I can see the work you’ve done, I can probably tell you more on how to proceed…

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Showing All Gallery Images via a link Click’ is closed to new replies.