Customize the Previous/Older Page Link

< 1 min read

Unless otherwise indicated, the code snippets you see below should be placed into your theme’s functions.php file.

Here is the code to customize the previous (older) page link:

<?php
//* Do NOT include the opening php tag shown above. Copy the code shown below.
 
//* Customize the previous page link
add_filter ( 'genesis_prev_link_text' , 'sp_previous_page_link' );
function sp_previous_page_link ( $text ) {
    return '&#x000AB; Custom Previous Page Link';
}

What are your feelings

  • Happy
  • Normal
  • Sad