Skip to content

Documentation

Extensive Documentation for PowerPack & WooPack to help you with common questions and issues.

PowerPack

  1. Home
  2. Docs
  3. PowerPack
  4. Modules
  5. Content Grid
  6. How to stop Automatic Scrolling when Filters are clicked?

How to stop Automatic Scrolling when Filters are clicked?

Content Grid provides a lot of options and one of the best one is of filters to filter posts. The filters to provide much better user experience automatically scroll the page to the filtered posts. This is useful specially in case of Mobile Devices where view port is quite restricted.

If you want to disable the auto-scrolling then please add the following filter to the theme’s functions.php file.

<?php

// PowerPack Content Grid prevent scroll animation on filtering
add_filter( 'pp_cg_scroll_to_grid_on_filter', '__return_false' );
Was this article helpful to you? Yes 1 No 2
×