✨feature: Style pagination
This commit is contained in:
@@ -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>',
|
||||
)
|
||||
);
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user