Site logo

Archived topic

Modify previous and next button text from pagination on Archive Page

3 replies · Started by Szymon on October 24, 2022

Viewing posts 1–4 of 4

How to change texts: "Previous" and "Next" on default pagination on archive page?
The Block Element Archive Navigation isn't a solution, because i can't add page numbers.

Hi there,

Try this PHP snippet, replace the Previousand Nexttext in the code with your words:

add_filter( 'generate_previous_link_text', function() {
    return 'Previous';
} );
add_filter( 'generate_next_link_text', function() {
    return 'Next';
} );

@Ying Thank you, this is it <3

You are welcome :)

This archived topic is closed to new replies.