Home>Support>Focus Premium Theme – Translate Older / Newer posts links

Focus Premium Theme – Translate Older / Newer posts links

By Ilie, 10 years ago. Last reply by Andrew Misplon, 10 years ago.
Notice: This thread is over two years old; the information may be outdated. Please consider creating a new thread if you require free support. If you have an active SiteOrigin Premium license, you can email our premium support desk at [email protected].

I need to translate “Older posts” and “Newer posts” navigation links on Focus Premium Theme, main page
Where I can make this changes?

URL: http://www.biserici-vazute-de-sus.ro

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 10 years, 1 day ago Andrew Misplon
    Hi, I Work Here

    Hi Ilie

    Thanks for reaching out. Please give this child theme a try:

    https://siteorigin.com/wp-content/uploads/2015/07/focus-child-content-nav.zip

    Download the ZIP file your desktop.
    Install via Appearance > Themes > Add New: Upload Theme

    Then, very carefully go to Appearance > Editor > functions.php and edit the strings Older posts and Newer posts. They are located in the following section:

    		<?php if ( get_next_posts_link() ) : ?>
    		<div class="nav-previous"><?php next_posts_link( __( '<span class="meta-nav">←</span> Older posts', 'focus' ) ); ?></div>
    		<?php endif; ?>
    
    		<?php if ( get_previous_posts_link() ) : ?>
    		<div class="nav-next"><?php previous_posts_link( __( 'Newer posts <span class="meta-nav">→</span>', 'focus' ) ); ?></div>
    		<?php endif; ?>
    

    The alternative is to translate those strings via the theme’s .pot translation file. It’s longer and harder. However, the task I’ve laid out above is intermediate in level because if you make a small mistake in functions.php the theme will white screen. So just make sure you only edit the the words Older posts and Newer posts.

    (If the theme does white screen you’ll need to login via FTP or Hosting File Manager, go to /wp-content/themes/ and delete the focus-child folder)

  2. 10 years, 14 hours ago Private Message - Ilie

    This is a private message.

  3. 10 years, 14 hours ago Private Message - Ilie

    This is a private message.

  4. 10 years, 5 hours ago Andrew Misplon
    Hi, I Work Here

    Awesome, really glad to hear you made progress :)

    All the best.

Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More