WordPress.org

Support

Support » Plugins and Hacks » NextGEN Gallery - WordPress Gallery Plugin » [Plugin: NextGEN Gallery] Using arrow keys for navigation

[Plugin: NextGEN Gallery] Using arrow keys for navigation

Viewing 2 replies - 1 through 2 (of 2 total)
  • I solved the problem by installing this Lightbox WordPress Plugin and than activating Lightbox from the Galley –> Options –> Effects page.

    open the Imagebrowser.php in your nextgen gallery plugin folder and add the following java script after the code.

    FIND :

    <?php if (!defined (‘ABSPATH’)) die (‘No direct access allowed’); ?><?php if (!empty ($image)) : ?>

    ———— aDD THE following java script after the above Code ——

    <script>

    jQuery(document).keydown(function(e){

    if (e.keyCode == 37) {
    // alert( “left pressed” );
    window.location = “<?php echo $image->previous_image_link ?>#pic”;
    //alert(‘prev’);
    return false;
    }

    if (e.keyCode == 39) {
    window.location = “<?php echo $image->next_image_link ?>#pic”;
    //alert(‘next’);
    return false;

    }
    });

    </script>

    —————————————-

    Working 100% Have fun

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: NextGEN Gallery] Using arrow keys for navigation’ is closed to new replies.
Skip to toolbar