Skip to content

Instantly share code, notes, and snippets.

@braginteractive
Created April 11, 2017 21:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save braginteractive/f9eb0744a9dd60ce2961d4800c3f28b4 to your computer and use it in GitHub Desktop.
Save braginteractive/f9eb0744a9dd60ce2961d4800c3f28b4 to your computer and use it in GitHub Desktop.
WordPress Pagination
/* Posts Navigation */
.pagination {
margin-top: 30px;
justify-content: center;
.page-numbers {
border: 1px solid rgba(0,0,0,.2);
padding: 8px;
border-radius: 3px;
&.current,
&:hover {
background-color: $blue;
color: white;
text-decoration: none;
}
}
}
<?php the_posts_pagination( array(
'prev_text' => '<i class="fa fa-arrow-left" aria-hidden="true"></i><span class="screen-reader-text">' . __( 'Previous Page', 'helpwp' ) . '</span>',
'next_text' => '<span class="screen-reader-text">' . __( 'Next Page', 'helpwp' ) . '</span><i class="fa fa-arrow-right" aria-hidden="true"></i>',
) ); ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment