WordPress.org

Ready to get started?Download WordPress

Forums

Simply Instagram
[resolved] Small Conflict with Easy Fancybox (1 post)

  1. bluantinoo
    Member
    Posted 1 year ago #

    I use quite often the "lightbox" plugin Easy Fancybox and I set that any image will automatically be opened via fancybox.

    this causes a double opening in simply instagram widget images, because both the widget and Easy Fancybox try to open the picture.

    To solve just add the class "nofancybox" to the link that opens the images on widget:

    line 95 of file simply-instagram-functions.php

    from this:

    $output = '<a href="' . $data['data'][$i]['images']['standard_resolution']['url'] . '" rel="' . $customRel . '[instagram]" title="' . htmlspecialchars( $data['data'][$i]['caption']['text'], ENT_QUOTES ). '">';

    to this:

    $output = '<a class="nofancybox" href="' . $data['data'][$i]['images']['standard_resolution']['url'] . '" rel="' . $customRel . '[instagram]" title="' . htmlspecialchars( $data['data'][$i]['caption']['text'], ENT_QUOTES ). '">';

    easy peasy :)

    I hope developers will add this small fix in next release, I love this instagram plugin :)

    http://wordpress.org/plugins/simply-instagram/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic