Home>Support>Change language of Read More link

Change language of Read More link

By donk, 9 years ago. Last reply by Andrew Misplon, 9 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 want to change the ‘Read More’ link into another language.

I tried to change this in the functions.php with the next code:

// TRANSLATION

add_filter('gettext', 'translate_text'); 
add_filter('ngettext', 'translate_text');

function translate_text($translated) { 
$translated = str_ireplace('Read More', 'Lees verder', $translated); 
return $translated; 
}

I hope someone can help me.

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

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

    Hi Donk

    Thanks for reaching out.

    Keep in mind that all WordPress.org themes completely overwrite their own folder during theme updates. If you’d like to add custom functions it needs to be done within the functions.php file of a child theme. Changes made to the parent theme files will be lost during the theme update process.

    One easy option would be to use the following plugin: https://wordpress.org/plugins/loco-translate/

    If you’d like to go the child theme route, you can find one here:

    https://siteorigin.com/wp-content/uploads/2015/03/vantage-child-read-more-edit.zip

    Download to your desktop.
    Install the ZIP from Appearance > Themes > Add New > Upload Theme.
    Activating a child theme will cause Customizer and menu location assignements to reset. This is expected.
    Go to Appearance > Editor and carefully edit the Continue reading string. Even a small syntax error here will cause your site to white screen. This change is best made with FTP access ready. If your site does white screen go to /wp-content/themes and delete the “vantage-child” folder.

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