• Hey guys,

    first of all I have to say that I’m absolutely new to WP and I just know basic HTML stuff and almost nothing about PHP. So I’m a complete newbie.

    I’m currently running WP-Version 3.1 on my new blog an I use the Twenty-Eleven Theme as it fits my needs almost perfectly. There are just a few things that i want to customize. After some Google-research I found out how to make the theme show excerpts on all kinds of pages e.g. when showing search results or archive posts.
    But what it doesn’t do is showing a “Read on” link an I don’t know why.
    Is there something I can do to get it working?

    As far as I know it must be something in the functions.php file which currently looks like this (i guess thats the part about the “Read on” link stuff):

    /**
     * Returns a "Continue Reading" link for excerpts
     */
    function twentyeleven_continue_reading_link() {
        return ' <a href="'. esc_url( get_permalink() ) . '">' . __( 'noch mehr <span class="meta-nav">→</span>', 'twentyeleven' ) . '</a>';
    } 
    
    /**
     * Replaces "[...]" (appended to automatically generated excerpts) with an ellipsis and twentyeleven_continue_reading_link().
     *
     * To override this in a child theme, remove the filter and add your own
     * function tied to the excerpt_more filter hook.
     */
    function twentyeleven_auto_excerpt_more( $more ) {
        return ' …' . twentyeleven_continue_reading_link();
    }
    add_filter( 'excerpt_more', 'twentyeleven_auto_excerpt_more' ); 
    
    /**
     * Adds a pretty "Continue Reading" link to custom post excerpts.
     *
     * To override this link in a child theme, remove the filter and add your own
     * function tied to the get_the_excerpt filter hook.
     */
    function twentyeleven_custom_excerpt_more( $output ) {
        if ( has_excerpt() && ! is_attachment() ) {
            $output .= twentyeleven_continue_reading_link();
        }
        return $output;
    }
    add_filter( 'get_the_excerpt', 'twentyeleven_custom_excerpt_more' );

    The address of the page is bavarian-observer.de

    Would be great if one of you guys knows what to do.
    Oh and since I’m german I would like the theme to show not “Read on” but “Noch mehr” instead.

    Thanks four your help.

  • The topic ‘Twenty Eleven Theme "Read More" Link not shown’ is closed to new replies.