Site logo

[Resolved] Can’t change Read more text for blog

Home Forums Support [Resolved] Can’t change Read more text for blog

Home Forums Support Can’t change Read more text for blog

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #2399134
    Bill

    Hi there! I changed the ‘read text’ label in Layout>blog but it does not show on the blog page. The buttons still say ‘read more’. I turned off perfmatters and Autoptimize on that page, but still does not work.

    Thanks!

    Bill

    #2399137
    Leo
    Staff
    Customer Support

    Hi Bill,

    Are there custom functions added with regards to the read more tag?

    Have you tried disabling all plugins except GP Premium to test?

    Let me know 🙂

    #2399138
    Bill

    Hi Leo,

    I have this code snippet. I removed it and now there is no button or text.

    add_filter( ‘wp_trim_excerpt’, ‘tu_excerpt_metabox_more’ );
    2
    function tu_excerpt_metabox_more( $excerpt ) {
    3
    $output = $excerpt;
    4

    5
    if ( has_excerpt() ) {
    6
    $output = sprintf( ‘%1$s <p class=”read-more-button-container”>%3$s</p>’,
    7
    $excerpt,
    8
    get_permalink(),
    9
    __( ‘Read more’, ‘generatepress’ )
    10
    );
    11
    }
    12

    13
    return $output;
    14
    }

    #2399144
    Leo
    Staff
    Customer Support

    Can you try editing the Read more text in that function?

    #2399150
    Bill

    Yes, that worked. Thanks 🙏

    #2400077
    Leo
    Staff
    Customer Support

    No problem 🙂

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