[Resolved] Double "read more label"

Home Forums Support [Resolved] Double "read more label"

Home Forums Support Double "read more label"

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1242633
    piotr

    I have added a “read more label” (more..) in the customizer which is also displayed on the blog page.

    On the Frontpage I added a “Post Grid” using a gutenberg addon (Ultimate Addons for Gutenberg) which adds a button (read more..). Now both “read more labels” (more and read more) appear there.

    How can I remove the label “more” on the Frontpage?

    #1243127
    David
    Staff
    Customer Support

    Hmmm… not sure – you can try this PHP snippet:

    add_filter( 'option_generate_blog_settings', function( $options ) {
        if ( is_front_page() ) {
            $options['read_more'] = '';
        }
      
        return $options;
    } );
    #1259413
    piotr

    sorry for the late reply.
    unfortunately it does not work with this php snippet.

    another idea?

    #1259911
    Tom
    Lead Developer
    Lead Developer

    I just made a change to the function, can you try it again?: https://generatepress.com/forums/topic/double-read-more-label/#post-1243127

    #1261758
    piotr

    Now it works.
    Thanks so much for that.

    #1262079
    Tom
    Lead Developer
    Lead Developer

    You’re welcome 🙂

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