public
Last active

Customize the post navigation links on your site using the Genesis Framework.

  • Download Gist
functions.php
PHP
1 2 3 4 5 6 7 8 9 10 11 12 13 14
<?php
//* Do NOT include the opening php tag
 
//* Customize the next page link
add_filter ( 'genesis_next_link_text' , 'bg_next_link_text' );
function bg_next_link_text ( $text ) {
return g_ent( '&raquo; ' ) . __( 'Custom Next Page Link', CHILD_DOMAIN );
}
 
//* Customize the previous page link
add_filter ( 'genesis_prev_link_text' , 'bg_prev_link_text' );
function bg_prev_link_text ( $text ) {
return g_ent( '&laquo; ' ) . __( 'Custom Previous Page Link', CHILD_DOMAIN );
}

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.