Support » Plugin: Advanced AJAX Product Filters » scroll to top – conditionally

  • Resolved fkoomek


    Is somehow possible to enable/disable the scroll to top function by a code? I would like to make this work conditionally. For example, I’d like to disable this function for normal filtering but I would like to scroll to top after the next page of products is load.

    • This topic was modified 2 months, 2 weeks ago by  fkoomek.
Viewing 1 replies (of 1 total)
  • Ok, so I made a custom script for this:

    jQuery('.woocommerce-pagination').click(function() { //when click pages number element
        jQuery(document).one('ajaxStart', function() {
            jQuery('html, body').animate({
                scrollTop: jQuery("#filtercover").offset().top //element to scroll to
            }, 500);
    • This reply was modified 2 months, 1 week ago by  fkoomek.
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.