• Resolved Jaygol

    (@jaygol)


    Hi! I have created a child for the Twenty Thirteen theme.

    I would like to change the wording of “Older posts” and “Newer posts” on the bottom of the page to only say “Older” and “Newer”.

    Could anyone kindly explain where I should do the changes?

    Many thanks in advance!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Jaygol

    (@jaygol)

    I assume I have to create a functions.php?

    Any advise on what to include would be greatly appreciated!

    create a functions.php?

    yes;
    https://codex.www.ads-software.com/Child_Themes#Using_functions.php

    in there, add the function with the edited code (replace the ‘Older posts’ etc):

    function twentythirteen_paging_nav() {
    	global $wp_query;
    
    	// Don't print empty markup if there's only one page.
    	if ( $wp_query->max_num_pages < 2 )
    		return;
    	?>
    	<nav class="navigation paging-navigation" role="navigation">
    		<h1 class="screen-reader-text"><?php _e( 'Posts navigation', 'twentythirteen' ); ?></h1>
    		<div class="nav-links">
    
    			<?php if ( get_next_posts_link() ) : ?>
    			<div class="nav-previous"><?php next_posts_link( __( '<span class="meta-nav">&larr;</span> Older posts', 'twentythirteen' ) ); ?></div>
    			<?php endif; ?>
    
    			<?php if ( get_previous_posts_link() ) : ?>
    			<div class="nav-next"><?php previous_posts_link( __( 'Newer posts <span class="meta-nav">&rarr;</span>', 'twentythirteen' ) ); ?></div>
    			<?php endif; ?>
    
    		</div><!-- .nav-links -->
    	</nav><!-- .navigation -->
    	<?php
    }
    Thread Starter Jaygol

    (@jaygol)

    That worked! Thank you so much for your help!!! ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Rewording "Older posts" / "Newer posts"’ is closed to new replies.