Ready to get started?Download WordPress


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

  1. vegastriguy
    Posted 7 months 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 7 months 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 6 months ago #

    HEllo.....anyone home?

  4. ZeroGravity
    Posted 6 months 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 6 months ago #

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


You must log in to post.

About this Plugin

About this Topic