pagination and archive tweaks
This commit is contained in:
parent
280973cc13
commit
b0fa6a1384
@ -52,6 +52,14 @@ function my_widgets_init() {
|
||||
|
||||
}
|
||||
|
||||
add_action( 'pre_get_posts', 'set_archive_page_post_count' );
|
||||
|
||||
function set_archive_page_post_count( $query ) {
|
||||
if ( $query->is_archive() && $query->is_main_query() && !is_admin() ) {
|
||||
$query->set( 'posts_per_page', 13 );
|
||||
}
|
||||
}
|
||||
|
||||
// Breadcrumbs
|
||||
function custom_breadcrumbs() {
|
||||
|
||||
|
@ -1317,6 +1317,15 @@ a.page-numbers,
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.page-numbers .current {
|
||||
background-color: #FFDB12;
|
||||
color: #414b4c;
|
||||
}
|
||||
|
||||
li:has(> .current) { /* styles to apply to the li tag */
|
||||
background-color: #FFDB12;
|
||||
}
|
||||
|
||||
@media (min-width: 760px) {
|
||||
ul.page-numbers {
|
||||
justify-content: center;
|
||||
|
Loading…
Reference in New Issue
Block a user