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

  1. bluantinoo
    Posted 2 years 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 :)


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Simply Instagram
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic