Created
April 11, 2017 21:10
-
-
Save braginteractive/f9eb0744a9dd60ce2961d4800c3f28b4 to your computer and use it in GitHub Desktop.
WordPress Pagination
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 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; | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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