Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter edwardgnz

    (@edwardgnz)

    Sorry, I forgot to post a link to where a gallery is used.
    I can’t quite figure out how to prevent the page from scrolling up when I press the next/previous button on the lightbox. But I have stopped other # links from triggering a page scrolling up when clicked. I placed this code on the footer.php but it didn’t fix the issue on the lightbox.

    <script type="text/javascript">
    /* <![CDATA[ */
    ( function( $ ) {
       $( 'a[href="#"]' ).click( function(e) {
          e.preventDefault();
       } );
    } )( jQuery );
    /* ]]> */
    </script>

    Here’s a gallery example:
    https://www.myhomecavite.com/lancaster-new-city/thea-townhouse/

    Hi Edward and thanks for bringing this to our attention.

    I’ve reached out to our developer on this issue, and was able to replicate this, so the developer will be working on the issue and it will be updated on a future update.

    Unfortunately I don’t have an ETA on the update as of yet, I apologize ??

    Thread Starter edwardgnz

    (@edwardgnz)

    Hi Akyusa,

    Thanks ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Clicking the next/previous button on lightbox scrolls to top’ is closed to new replies.