Code Snippets

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 );
}
view raw gistfile1.txt hosted with ❤ by GitHub