Skip to content

Instantly share code, notes, and snippets.

@WebEndevSnippets
Created June 3, 2013 19:49
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 WebEndevSnippets/5700817 to your computer and use it in GitHub Desktop.
Save WebEndevSnippets/5700817 to your computer and use it in GitHub Desktop.
Genesis: Customize Post Navigation
// Customize the next page link
add_filter ( 'genesis_next_link_text' , 'custom_next_link_text' );
function custom_next_link_text ( $text ) {
return g_ent( '» ' ) . __( 'Custom Next Page Link', CHILD_DOMAIN );
}
// Customize the previous page link
add_filter ( 'genesis_prev_link_text' , 'custom_prev_link_text' );
function custom_prev_link_text ( $text ) {
return g_ent( '« ' ) . __( 'Custom Previous Page Link', CHILD_DOMAIN );
}
// Customize the newer posts link
add_filter ( 'genesis_newer_link_text' , 'custom_newer_link_text' );
function custom_newer_link_text ( $text ) {
return g_ent( '» ' ) . __( 'Custom Newer Posts Link', CHILD_DOMAIN );
}
// Customize the older posts link
add_filter ( 'genesis_older_link_text' , 'custom_older_link_text' );
function custom_older_link_text ( $text ) {
return g_ent( '« ' ) . __( 'Custom Older Posts Link', CHILD_DOMAIN );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment