WordPress.org

Ready to get started?Download WordPress

Forums

jQuery Pin It Button For Images
Can it work with lightbox gallery images? (4 posts)

  1. Adrian
    Member
    Posted 11 months ago #

    I am using Ciola theme and liking it very much but the images all appear as lightbox galleries and I've set the pin it button to a minimum of 300x200 so it doesn't appear on the thumbnail but clicking them opens the lightbox image and there's no option to pin that image.
    Can anything be done or will it not work?

    Really appreciate your help.

    Website - http://www.slrcoaching.com

    Example page with lightbox galleries http://slrcoaching.com/whats-in-your-bag-with-rob/

    http://wordpress.org/plugins/jquery-pin-it-button-for-images/

  2. mrsztuczkens
    Member
    Plugin Author

    Posted 11 months ago #

    Hi,

    for now, there's nothing you can do to make it work with lightbox gallery images. The box with the image is created after the page is loaded (it doesn't exist on page load) and therefore (at least for now), it won't work. It's a pretty similar issue to this one: http://wordpress.org/support/topic/button-only-on-first-5-images?replies=2. Please read my answer in that topic.

  3. belfisher
    Member
    Posted 3 months ago #

    Hi, folks.

    I use the next trick for that (init all the things again). Not brilliant solution, but it works.

    $(".fancybox").fancybox(
    {
    afterShow: function() {
    jpibfi.addImages( jpibfi_options.imageSelector );
    jpibfi.prepareImages( $('img[data-jpibfi-indexer]') );
    }
    }
    );

  4. fungoody.com
    Member
    Posted 3 months ago #

    belfisher, where does that code go? I assume that's for fancybox only?

Reply

You must log in to post.

About this Plugin

About this Topic