Viewing 1 replies (of 1 total)
  • Hi A

    You can do it by adding the following set of codes at the bottom of your theme’s functions.php file. Like always I would ask you to do the following change using a child theme, so this change along with any further change would remain preserved.

    function se_change_previous_text( $output, $format, $link, $post, $adjacent ) {
    	$output = str_replace( 'Previous Article', 'Previous Recipe', $output );
    
    	return $output;
    }
    add_filter( 'previous_post_link', 'se_change_previous_text', 10, 5 );
    
    function se_change_next_text( $output, $format, $link, $post, $adjacent ) {
    	$output = str_replace( 'Next Article', 'Next Recipe', $output );
    
    	return $output;
    }
    add_filter( 'next_post_link', 'se_change_next_text', 10, 5 );

    Thanks

Viewing 1 replies (of 1 total)

The topic ‘"Next Article"/"Previous Article"’ is closed to new replies.