Genesis - How to change previous/next page text

Genesis pagination defaults to "Previous Page" and "Next Page." If you'd like to change this text, we'll show you how in this tutorial.

Before making any edits to your Functions.php file, please make sure that you have access to the File Manager in your cPanel or FTP. The Functions.php file is incredibly sensitive and if a mistake is made, it can cause the "white screen of death" on your site. Having easy access to your File Manager means you can easily upload a fresh copy of the Functions.php file if the need arises.

Change the "previous page" and "next page" pagination text

1. Copy the following code snippet:

//* Change Previous and Next Page Text
add_filter( 'genesis_prev_link_text', 'change_previous_page_text' );
function change_previous_page_text($text) {
        $text = '« Previous';
        return $text;
}
add_filter( 'genesis_next_link_text', 'change_next_page_text' );
function change_next_page_text($text) {
        $text = 'Next »';
        return $text;
}

2. Go to Appearance > Theme Editor > Functions.php.

3. Scroll to the very end of the file and paste the code.

4. Change Previous and Next to your desired text. If you don't want the arrows, simply delete them. Be sure to keep the apostrophe marks on either side of the text.