Home Forums WoodMart support forum Products per page above 20 – Filtering too slow Reply To: Products per page above 20 – Filtering too slow

#139045

Stanley Black
Participant

Hello,

When theme is updated filtering starts to work faster.
It working without a problem when 40,50 products are set in “Number of products per page”.

But I need more and I achieve that with disabling “AJAX functionality for filters widgets on shop” in Theme settings.

Now I need one more thing and my problem is resolved.

When filter is chose I want to page scroll to the filter section. Not to goes to the top of a page.

This is possible when “AJAX functionality for filters widgets on shop” is enabled
+ your custom code

add_filter(
‘woodmart_ajax_scroll_offset’,
function(){
return 140;
},
10
);
How to achieve the same now when page is refreshing?

Kind regards