Below is the PHP code to add previous and next navigation links to single posts in Genesis.
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 | |
//* Display post navigation links to previous and next post, from a single post, in Genesis. | |
add_action('genesis_after_entry', 'genesis_prev_next_post_nav', 9); |
Below is the CSS code to add previous and next navigation links to single posts in Genesis.
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
/* Previous and next single post navigation links */ | |
.adjacent-entry-pagination { | |
background: none; | |
border-bottom: 1px solid #ddd; | |
border-top: 1px solid #ddd; | |
margin: 100px 0; | |
padding: 0; | |
} | |
.single .pagination-next, | |
.single .pagination-previous { | |
font-size: 20px; | |
font-weight: 900; | |
padding: 60px 0; | |
width: 50%; | |
} | |
.adjacent-entry-pagination .pagination-previous { | |
border-right: 1px solid #ddd; | |
float: left; | |
padding-right: 15px; | |
} | |
.adjacent-entry-pagination .pagination-next { | |
float: right; | |
padding-left: 15px; | |
} |