Skip to content

Documentation

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

PowerPack

⌘K
  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 filters to filter posts. The filters, to provide a much better user experience, automatically scroll the page to the filtered posts. This is useful, especially in the case of Mobile Devices where the viewport 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' );

Note: You may need to purge the Beaver Builder cache after implementing this code. Please go to WP-admin > Settings > Beaver Builder > Tools to purge the cache.

×