Error while editing read more link

Community Forums Forums Internationalization and Translations Error while editing read more link

This topic is: not resolved

This topic contains 3 replies, has 2 voices, and was last updated by  devents 1 year, 5 months ago.

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

    Heldkamp
    Participant
    Post count: 4

    Hello all,

    When I’m trying to edit my ‘read more’ link for blog posts I get a server error. And because of that my site triggerradar.nl isn’t accessible anymore.

    This is the code I use (functions.php):

    /** Modify the Genesis content limit read more link */
    add_filter( ‘get_the_content_more_link’, ‘custom_read_more_link’ );
    function custom_read_more_link() {
    return ‘… <a class=”more-link” href=”‘ . get_permalink() . ‘”>[Lees meer] </a>’;
    }

    Can anyone tell me what is going wrong?

    Thanks :)

    #20674

    Heldkamp
    Participant
    Post count: 4

    For your opinion: I get this error a lot while adding code snippets to my functions.php file

    #22368

    devents
    Participant
    Post count: 2

    I opened the FTP Program, found the functions.php file in the Theme Folder and deleted the wrong snippet. It worked again.

    Remains the question, how to rename the “read more” button into other languages. any Ideas that work?

    #22370

    devents
    Participant
    Post count: 2

    Take this Snippet and change (Continue Reading) into your language

     

    /** Modify the WordPress read more link */
    add_filter( 'the_content_more_link', 'custom_read_more_link' );
    function custom_read_more_link() {
        return '<a class="more-link" href="' . get_permalink() . '">[Continue Reading]</a>';
    }

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

You must be logged in to reply to this topic.