Next Gen Gallery back/next links scrolls to top of page (1 post)

  1. webbrewers
    Posted 4 years ago #

    The solutions I saw for this didn't work so thought I'd post what did which is also a bit simpler.
    Open view/imagebrowser.php
    Add an anchor tag at top
    Append a hash tag to the back and next link php

    <a name="pictop"></a>
    <div class="ngg-imagebrowser" id="<?php echo $image->anchor ?>">
    <a class="ngg-browser-prev" id="ngg-prev-<?php echo $image->previous_pid ?>" href="<?php echo $image->previous_image_link ?>#pictop">

    The anchor can be anything and works because the url changes to the new picture id.

Topic Closed

This topic has been closed to new replies.

About this Topic