1. Home
  2. Docs
  3. SUMNIMA & RATNA
  4. Theme Features
  5. Debug & Common Setup...
  6. Category pagination Locomotive

Category pagination Locomotive

Due to third-party JavaScript, some store paginations stop scrolling to the top after clicking on pagination links

Script Manager

<script src="https://code.jquery.com/jquery-3.7.1.min.js" integrity="sha256-/JqT3SQfawRcv/BIHPThkBvs0OEvtFFmqPF/lYI/Cxo=" crossorigin="anonymous"></script>
<script>
        $(document).ready(function() {
            if ($('body').hasClass('category') && $('.main-locomotive').length) {
                $('html, body').animate({ scrollTop: 0 }, 'fast');
            }
        });
</script>