feature: Style pagination
Deploy to Dreamhost (dev) / build (push) Successful in 34s
Sync TODOs with Issues / sync_todos (push) Successful in 5s

This commit is contained in:
Keith Solomon
2026-07-05 16:13:21 -05:00
parent 1544a7a04b
commit 43e3316a70
4 changed files with 37 additions and 27 deletions
+10 -2
View File
@@ -16,6 +16,14 @@ if ( hasSidebar() ) {
$classes = 'container my-section lg:my-0 mx-auto';
}
ob_start();
get_template_part( 'views/icons/prev' );
$pagination_prev_icon = ob_get_clean();
ob_start();
get_template_part( 'views/icons/next' );
$pagination_next_icon = ob_get_clean();
get_header();
?>
@@ -64,8 +72,8 @@ get_header();
the_posts_pagination(
array(
'mid_size' => 2,
'prev_text' => '« Previous',
'next_text' => 'Next »',
'prev_text' => $pagination_prev_icon . '<span class="sr-only">' . esc_html__( 'Previous', 'cwc' ) . '</span>',
'next_text' => $pagination_next_icon . '<span class="sr-only">' . esc_html__( 'Next', 'cwc' ) . '</span>',
)
);
?>