- This topic has 4 replies, 3 voices, and was last updated 5 years, 6 months ago by .
Viewing 5 posts - 1 through 5 (of 5 total)
Viewing 5 posts - 1 through 5 (of 5 total)
- You must be logged in to reply to this topic.
Support › Forums › Sunshine Pro Theme › How do I remove Previous Next on Posts page?
Searched for this issue and read a reference to removing the code in functions.php for
//* Showing post nav in single post page
However I do not have any code like that in my functions.php file.
How do I remove Previous Next on Posts page?
Using Sunshine Pro BB
Remove the following code in helper_functions file contained in the “lib” folder.
add_action( 'genesis_after_entry', 'sunshine_prev_next_post_nav', 5 );
//* Showing post nav in single post page
function sunshine_prev_next_post_nav() {
if ( ! is_singular( 'post' ) )
return;
genesis_markup( array(
'html5' => '<div %s>',
'xhtml' => '<div class="navigation">',
'context' => 'adjacent-entry-pagination',
) );
if( get_previous_post_link() ) {
echo '<div class="pagination-previous alignleft">';
previous_post_link('<span class="prev-text">'. __( 'Previous', 'sunshine' ) . '</span><br/>%link');
echo '</div>';
}
if( get_next_post_link() ) {
echo '<div class="pagination-next alignright">';
next_post_link( '<span class="next-text">' . __('Next', 'sunshine') . '</span><br/>%link');
echo '</div>';
}
echo '</div>';
}
I do not have that code in the helper_functions.php file.
Stacey
Davinder was correct. Code is in lib/helper_functions.php file
sorry, did find that code & removed it.
Thanks