[Support request] read more button not showing

Home Forums Support [Support request] read more button not showing

Home Forums Support read more button not showing

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

    Even though I have the “Read more” label active, text or button are not showing.

    Thank you

    #920991
    Leo
    Staff
    Customer Support

    Hi there,

    Are you using custom excerpt?

    If so give this a shot:
    https://docs.generatepress.com/article/activating-read-custom-excerpt/#read-more-button

    Let me know 🙂

    #921504
    Marcos

    Leo, yes, I’m using excerpts on my posts.

    Where do I supose to past that code?
    add_filter( ‘wp_trim_excerpt’, ‘tu_excerpt_metabox_more’ );
    function tu_excerpt_metabox_more( $excerpt ) {
    $output = $excerpt;

    if ( has_excerpt() ) {
    $output = sprintf( ‘%1$s %3$s‘,
    $excerpt,
    get_permalink(),
    __( ‘Read more’, ‘generatepress’ )
    );
    }

    return $output;
    }

    #921680
    David
    Staff
    Customer Support

    Hi there,

    this article explains:

    https://docs.generatepress.com/article/adding-php/

    If you’re not using a child theme then the Code Snippets plugin ( link to that in the article ) is the easiest place to add it.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.