The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

Change Navigation title (2 posts)

  1. jankowitts
    Posted 2 years ago #



    I would like to change the navigation button titled "Older Posts" at the bottom of my front page to say "Next Page".

    How can I make this possible?


  2. parcodeisuoni
    Posted 2 years ago #

    did you mean "Older Articles" black button?
    You need to override one of your theme functions.
    For doing this the best and recommended way is to create a child theme first, then create a functions.php file to your child theme dir, and write a function athemes_content_nav in your child theme functions which overrides the parent theme.
    You could copy all the function from functions.php of your parent theme and change only this part, where you can see the text displayed within the button:

    <?php elseif ( $wp_query->max_num_pages > 1 && ( is_home() || is_archive() || is_search() ) ) : // navigation links for home, archive, and search pages ?>
    		<?php if ( get_next_posts_link() ) : ?>
    		<div class="nav-previous"><?php next_posts_link( __( '<span class="meta-nav"><i class="ico-left-open"></i></span> Older Articles', 'athemes' ) ); ?></div>
    		<?php endif; ?>
    		<?php if ( get_previous_posts_link() ) : ?>
    		<div class="nav-next"><?php previous_posts_link( __( 'Newer Articles <span class="meta-nav"><i class="ico-right-open"></i></span>', 'athemes' ) ); ?></div>
    		<?php endif; ?>
    	<?php endif; ?>

    Hope it helps, cheers

Topic Closed

This topic has been closed to new replies.

About this Topic