Created
June 3, 2013 19:49
-
-
Save WebEndevSnippets/5700817 to your computer and use it in GitHub Desktop.
Genesis: Customize Post Navigation
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
// 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