• Frank63

    (@frank63)


    Hi,

    I use the topic “Lovecraft” for my blog. The length of the excerpts is also set to 55 words for this topic. Since this is too long for my purposes, I started to write manual excerpts in my posts. I generally prefer that. Now there is the problem that in this case the READ MORE button is no longer displayed below the posts in the archive (blog page).

    What can I do to solve the problem?

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Frank63

    (@frank63)

    … found this code. It will probably have something to do with the renewal of the button “Read more” or?

    if ( ! function_exists( 'lovecraft_excerpt_more' ) ) :
        function lovecraft_excerpt_more( $more ) {
            $link = sprintf( '<p><a href="%1$s" class="more-link">%2$s</a></p>',
                esc_url( get_permalink( get_the_ID() ) ),
                /* translators: %s: Name of current post. */
                sprintf( esc_html__( 'Continue reading %s', 'lovecraft' ), '<span class="screen-reader-text">' . get_the_title( get_the_ID() ) . '</span>' )
                );
            return ' &hellip; ' . $link;
        }
        add_filter( 'excerpt_more', 'lovecraft_excerpt_more' );
    endif;
    Thread Starter Frank63

    (@frank63)

    Guten Abend.

    Keine Hilfe? Niemand eine Idee? Vielleicht vereinfache ich meine Frage etwas.

    Mein Theme “Lovecraft” ersetzt bei den automatischen Auszügen (die ersten 50 Worte des Beitragstextes) mit Hilfe des obigen Codes “[…]” durch einen Link “Lesen Sie weiter”.

    Ich m?chte gern das gleiche Verhalten, wenn ich das Feld “Auszug” im Editor des Beitrages manuell, das hei?t, auch mit deutlich weniger Inhalt fülle. Der Link “Lesen Sie weiter” sollte unter dem vollst?ndigen manuell erstellten Auszug generiert werden.

    Vielen Dank!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Theme Lovecraft’ is closed to new replies.