How to translate the 'Continue Reading…'

Community Forums Forums Design Tips and Tricks How to translate the 'Continue Reading…'

This topic is: not resolved

Tagged: 

This topic contains 3 replies, has 3 voices, and was last updated by  mickx 1 week, 4 days ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #63673

    Hallermand
    Participant
    Post count: 12

    Hi

    I would like to translate the text ‘Continue Reading…’ (the link for visit af specific post).

    The theme I use is Balance.

    I have translated the text via home.php but this is only changing the text at the frontpage. Therefore I also added the:

    //* Modify the Genesis content limit read more link
    add_filter( ‘get_the_content_more_link’, ‘sp_read_more_link’ );
    function sp_read_more_link() {
    return ‘… Klik og læs mere…‘;
    }

    This code change the text at the archive pages so now I only miss to change the very first blog post at the top, I don’t know why this is not being changed through the home.php? I always use the “Read More-Tag” because else the post is cover the whole frontpage.

    Here is an example: http://ili.dk/ (The first blogpost is still the ‘Continue Reading’ text.

    I know I can use this code for translate the Read More-Tag;

    //* Modify the WordPress read more link
    add_filter( ‘the_content_more_link’, ‘sp_read_more_link’ );
    function sp_read_more_link() {
    return ‘[Continue Reading]‘;
    }

    But when using this code, then i always got a fault message.

    Maybe that is because I also have added this code? I don’t know.

    //* Modify the length of post excerpts
    add_filter( ‘excerpt_length’, ‘sp_excerpt_length’ );
    function sp_excerpt_length( $length ) {
    return 50; // pull first 50 words
    }

    - Can you please help me with this problem?

    Thanks a lot. :-)

    #74431

    Susan
    Moderator
    Post count: 9406

    Since you posted this a while back, I hope you got your issue resolved. If not, can you please check back in here, and I will escalate this for you. Thanks!


    Susan @ Graphically Designing I offer theme customizations I tweet!
    I’ve taken up the challenge! – help me answer some of the unanswered posts

    #131350

    mickx
    Member
    Post count: 3

    Hello, I know nothing about php and have the same problem. So Susan, if you’re still willing to help, can you explain it to me?
    Thanx!

    #131353

    mickx
    Member
    Post count: 3

    Found it! (I think). In the theme-file function-php:

    /** Customize ‘Read More’ text */
    add_filter( ‘get_the_content_more_link’, ‘balance_read_more_link’ );
    add_filter( ‘the_content_more_link’, ‘balance_read_more_link’ );
    function balance_read_more_link() {
    return ‘‘ . __( ‘Lees meer…’ ) . ‘‘;

    As you can see, I changed ‘continue reading’ in the Dutch words ‘Lees meer…’

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.