Change the_post_navigation text


how can i change the label in portfolio navigation?

For example I would like to replace the portfolio title with “previous & next” label (screenshot)

Hello there,

Try doing the below steps:

  1. Install and activate the TC Custom JavaScript plugin
  2. Go To Appearance > Custom JavaScript
  3. Paste the following code into the provided box
    jQuery(function($) {

      if( $('body').hasClass('single') && $('.post-navigation').length ) {
        var nextText = 'Next';
        var prevText = 'Previous';
        $('.post-navigation .nav-previous a').text(prevText);
        $('.post-navigation .nav-next a').text(nextText);

  1. Update


1 Like

Thank you kharisblank

You’re welcome!

Please let us know in a new topic if you have any further questions, or if we can provide you with any other assistance.