• Resolved alissit

    (@alissit)


    After clicking through to Page 2 on our member directory, we’re not being redirected to the top of the list. Users are just shown the bottom of the list.

    UX really should be that users are directed to the top of the paginated results, right?
    Can you help with this at all?

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @alissit

    Try using this javascript code snippet to scroll at the top after clicking on the pagination:

    jQuery(document).ready(function() {
       wp.hooks.addAction("um_member_directory_loaded", "um", function() {
          var $container = jQuery("html,body"),
             $scrollTo = jQuery(".um-directory");
          // Or you can animate the scrolling:
          $container.animate(
             {
                scrollTop: $scrollTo.offset().top
             },
             1500
          );
       });
    });
    

    Regards,

    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @alissit

    ..Please feel free to re-open this thread by changing the Topic Status to ‘Not Resolved’ if any other questions come up and we’d be happy to help. ??

    Regards,

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘After Pagination – no scroll to top’ is closed to new replies.