continuing work on pagination
This commit is contained in:
parent
c657879840
commit
0ecd2e5efc
5 changed files with 169 additions and 133 deletions
|
|
@ -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' );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue