Skip to content

Instantly share code, notes, and snippets.

@srdjan-m
Created January 28, 2020 16:53
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 srdjan-m/2e00a0d40a4ff766cc379b5889ce7cf0 to your computer and use it in GitHub Desktop.
Save srdjan-m/2e00a0d40a4ff766cc379b5889ce7cf0 to your computer and use it in GitHub Desktop.
genesis: customize next and previous page link text
add_filter( 'genesis_prev_link_text', 'modify_previous_link_text' );
function modify_previous_link_text($text) {
$text = 'Your Custom Previous Link Text';
return $text;
}
/**
* @author Brad Dalton
* @example http://wpsites.net/web-design/customize-genesis-next-previous-page-link-text/
* @copyright 2014 WP Sites
*/
add_filter( 'genesis_next_link_text', 'modify_next_link_text' );
function modify_next_link_text($text) {
$text = 'Your Custom Next Link Text';
return $text;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment