The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

Random image gallery with pretty photo zoom
[resolved] Duplicated Lightbox (5 posts)

  1. vegastriguy
    Posted 2 years ago #

    Your plugin is the best I have found for a random image....question...I am using Easy Fancybox for my lightbox plugin.....when I implement yours I get basically two layered lightboxes......how can I maybe trigger your plugin to use easy fancybox?


  2. vegastriguy
    Posted 2 years ago #

    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?

  3. vegastriguy
    Posted 2 years ago #

    HEllo.....anyone home?

  4. ZeroGravity
    Posted 2 years ago #

    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

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


    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.

  5. vegastriguy
    Posted 2 years ago #

    Awesome...thanks...that worked like a charm!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Random image gallery with pretty photo zoom
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic