WordPress.org

Support

Support » Plugins and Hacks » [Resolved] Duplicated Lightbox

[Resolved] Duplicated Lightbox

Viewing 4 replies - 1 through 4 (of 4 total)
  • I guess what I am really asking is there a way to turn off your light box effect but still keep the random photo feature?

    HEllo…..anyone home?

    I was able to do this but you need to edit core files. Make note of the changes because you will need to reapply them if you update the plugin.

    1) edit select-random-image.php about line #57.
    Remove rel=”prettyPhoto” from the anchor tag.

    2) edit random-image-gallery-with-pretty-photo-zoom.php about line #27
    Change:

    global $ScriptInserted;
    if (!isset($ScriptInserted) || $ScriptInserted !== true)

    to

    global $ScriptInserted;
    // disable loading of pretty photo jquery
    $ScriptInserted = true;
    if (!isset($ScriptInserted) || $ScriptInserted !== true)

    This prevents a prettyPhoto jquery script from being added to the web page header.

    3) edit random-image-gallery-with-pretty-photo-zoom.php about line #387 (at the bottom).
    comment out the line add_action(‘wp_enqueue_scripts’, ‘rigwppz_add_javascript_files’);
    This will stop the prettyPhoto libraries from loading.

    Hope that helps. I gather the author doesn’t follow the support here because I haven’t ever seen a reply from him.

    Awesome…thanks…that worked like a charm!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Resolved] Duplicated Lightbox’ is closed to new replies.