fix mobile view project overview

This commit is contained in:
Jonas Heinrich 2020-06-18 16:06:34 +02:00
parent 77c2cdffe8
commit c36d84a8a3
2 changed files with 4 additions and 2 deletions

View file

@ -350,6 +350,8 @@ add_action( 'wp_head', 'kit_customize_css');
function kit_modify_posts_per_page( $query ) {
if ( $query->is_search() ) {
$query->set( 'posts_per_page', '10' );
} else {
$query->set( 'posts_per_page', '9' );
}
}
add_action( 'pre_get_posts', 'kit_modify_posts_per_page' );