WordPress.org

Ready to get started?Download WordPress

Forums

Change Navigation title (2 posts)

  1. jankowitts
    Member
    Posted 5 months ago #

    Hello,

    EyesOpenReport.com

    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?

    Thanks.

  2. parcodeisuoni
    Member
    Posted 5 months ago #

    Hello,
    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

Reply

You must log in to post.

About this Topic