Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter vegastriguy

    (@vegastriguy)

    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?

    Thread Starter vegastriguy

    (@vegastriguy)

    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.

    Thread Starter vegastriguy

    (@vegastriguy)

    Awesome…thanks…that worked like a charm!

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