continuing work on pagination

This commit is contained in:
Jonas Heinrich 2020-04-21 18:11:36 +02:00
parent c657879840
commit 0ecd2e5efc
5 changed files with 169 additions and 133 deletions

View file

@ -194,7 +194,7 @@ function kit_customize_css()
background-color: <?php echo get_theme_mod('theme_color', '#009982'); ?>;
}
.tx-indexedsearch .tx-indexedsearch-browsebox ul li.tx-indexedsearch-browselist-currentPage a {
.tx-indexedsearch .tx-indexedsearch-browsebox ul li.current a {
background-color: <?php echo get_theme_mod('theme_color', '#009982'); ?>;
}
@ -251,3 +251,11 @@ function kit_customize_css()
<?php
}
add_action( 'wp_head', 'kit_customize_css');
function kit_modify_posts_per_page( $query ) {
if ( $query->is_search() ) {
$query->set( 'posts_per_page', '10' );
}
}
add_action( 'pre_get_posts', 'kit_modify_posts_per_page' );