Pagination Amend

This commit is contained in:
Elliot 2017-05-22 12:26:07 +01:00
parent be25a1fea4
commit 779c351f2d
1 changed files with 2 additions and 2 deletions

View File

@ -53,7 +53,7 @@ function understrap_pagination() {
/** Previous Post Link */ /** Previous Post Link */
if ( get_previous_posts_link() ) { if ( get_previous_posts_link() ) {
printf( '<li class="page-item"><span class="page-link">%1$s</span></li> ' . "\n", printf( '<li class="page-item page-item-direction page-item-prev"><span class="page-link">%1$s</span></li> ' . "\n",
get_previous_posts_link( '<span aria-hidden="true">&laquo;</span><span class="sr-only">Previous page</span>' ) ); get_previous_posts_link( '<span aria-hidden="true">&laquo;</span><span class="sr-only">Previous page</span>' ) );
} }
@ -72,7 +72,7 @@ function understrap_pagination() {
// Next Post Link. // Next Post Link.
if ( get_next_posts_link() ) { if ( get_next_posts_link() ) {
printf( '<li class="page-item"><span class="page-link">%s</span></li>' . "\n", printf( '<li class="page-item page-item-direction page-item-next"><span class="page-link">%s</span></li>' . "\n",
get_next_posts_link( '<span aria-hidden="true">&raquo;</span><span class="sr-only">Next page</span>' ) ); get_next_posts_link( '<span aria-hidden="true">&raquo;</span><span class="sr-only">Next page</span>' ) );
} }