• Resolved GoodOmens

    (@goodomens)


    I’m using the Jetpack gallery tiled theme and I can no longer scroll through the images. The pop-up works fine – just there are no arrow buttons to scroll to the next image.

    Changing the “Autogallery” setting to “All in One” allows me to scroll through ALL images on the site. Changing back to “WordPress galleries only” only allows pop-ups for single images (even ones in galleries).

    The gallery code in my post is [gallery type="rectangular" link="file" ids="222,216,218,214,215,217"]

    https://wordpress.org/plugins/easy-fancybox/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi GoodOmens, thanks for reporting the issue. Apparently, the source code rendered by Jetpack has changed so it is no longer recognized by the Easy FancyBox script. It will be adressed in the next release but I cannot promise an early release. If you are in a hurry to get this working, you can turn to http://status301.net/easy-fancybox-pro-extension/ and set the Autogallery option to “Galleries per Section” and (if you have more then one gallery per post) set gallery, tiled-gallery for sections.

    Thread Starter GoodOmens

    (@goodomens)

    Thanks for the reply.

    I actually implemented a slightly different approach. I added the following code to my functions.php file:

    add_filter(‘the_content’, ‘addshadowboxrel’, 12);
    add_filter(‘get_comment_text’, ‘addshadowboxrel’);
    function addshadowboxrel ($content)
    { global $post;
    $pattern = “/<a(.*?)href=(‘|\”)([^>]*).(bmp|gif|jpeg|jpg|png)(‘|\”)(.*?)
    >(.*?)<\/a>/i”;
    $replacement = ‘<a$1href=$2$3.$4$5 rel=”post-‘.$post->ID.'”$6>$7’;
    $content = preg_replace($pattern, $replacement, $content);
    return $content;
    }

    This allows fancy box to use the REL tag. Works like a charm – it now scrolls through only images in a post which is a nice side effect.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘FancyBox and Jetpack Tiled Mosaic Theme – Can't Scroll’ is closed to new replies.