Archived topic
Double "read more label"
5 replies · Started by piotr on April 17, 2020
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?
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;
} );
sorry for the late reply.
unfortunately it does not work with this php snippet.
another idea?
I just made a change to the function, can you try it again?: https://generatepress.com/forums/topic/double-read-more-label/#post-1243127
Now it works.
Thanks so much for that.
You're welcome :)