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 1 reply, has 2 voices, and was last updated by  Susan 8 months, 1 week ago.

Viewing 2 posts - 1 through 2 (of 2 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: 7991

    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’d love to customize your website! I tweet!
    I’ve taken up the challenge! – help me answer some of the unanswered posts

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

You must be logged in to reply to this topic.