Site Message

Ready to Switch to eZbloo?

Basic eZbloo Plan $15 a month- Perfect for Low traffic and new startups

Premium eZbloo Plan $45 a month- Perfect for High Traffic Sites

Any Questions?: Contact me here!

     


If you are on the genesis system and want to have previous and next post navigation you can add the code below to your functions.php file. This is a great way for people to navigate though the posts on your website.  
/** Genesis Previous/Next Post Post Navigation */

add_action( 'genesis_before_comments', 'eo_prev_next_post_nav' );
 
function eo_prev_next_post_nav() {
  
	if ( is_single() ) {
 
		echo '
<div class="prev-next-navigation">';
		previous_post_link( '
<div class="previous">Previous article: %link</div>

', '%title' );
		next_post_link( '
<div class="next">Next article: %link</div>

', '%title' );
		echo '</div>

<!-- .prev-next-navigation -->';
 
	}
 
}

In your style sheet you can style the buttons how you like

Here is an example. You can add this to your style.css in your child theme.
.prev-next-navigation {
  margin: 20px 0;
	clear: both;
	overflow: hidden;
}

.previous {
	float: left;
	width: 50%;
}

.next {
	float: right;
	text-align: right;
	width: 50%;
}
Reference: http://www.eugenoprea.com/code-snippets/genesis-how-to-add-previousnext-post-navigation/



Sign Up To Comment