Ready to get started?Download WordPress


WP Flow Plus
[resolved] Reinitialise for hidden galleries (5 posts)

  1. chillfinn
    Posted 1 year ago #


    is there a good method for re-initialising galleries if they are contained in previously hidden elements?

    For example I'm trying to have multiple galleries inside jquery tabs (and I'm using 100% width for the galleries). Problem is that when you reveal a hidden div, the imageflow gallery inside can't draw itself as it doesn't yet know the dimensions of the containing area.

    Nice work otherwise!


  2. Bev
    Plugin Author

    Posted 1 year ago #

    You would need to trigger the javascript to run on the button press that reveals the div, rather than on the page load.

  3. chillfinn
    Posted 1 year ago #


  4. chillfinn
    Posted 1 year ago #

    But how can I do that with the way it's integrated in wordpress?

    So I'm calling it my template file like this:
    <?php echo do_shortcode('[wp-imageflow2 dir=ipad startimg=5]'); ?>

    But then I'd need to call it again when the div is actually visible, just wondering how, so far if I try to run something like the following (inside an event function):

    var imageflow2_1 = new imageflowplus(1);
    imageflow2_1.init( {conf_autorotate: "on", conf_autorotatepause: 3000, conf_startimg: 5}

    Nothing much happens :(

  5. Bev
    Plugin Author

    Posted 1 year ago #

    The plugin can't handle this without some hacking to do what you want.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic


No tags yet.