Archived topic
GP excerpt length is overriding the page builder excerpt length
1 reply · Started by Marge on October 3, 2017
Hi,
Having issues with excerpt length and BeaverBuilder page builder. There is a function where user can change the length and 'read more' tags in the page builder. This function has no effect in Generate Press theme.
Is there some way to 'turn-off' the blog post default length and "read more" tags so that the page builder will work? Or some way that GP would take a back seat to the page builder. Here's an example page: See the Featured Jobs section. https://abilityjobs.com/new-aj-home/ The page builder settings have more link hidden and excerpt length 20.
Thanks!
Marge
Hi there,
You could try this PHP:
add_action( 'after_setup_theme', 'tu_remove_blog_filters' );
function tu_remove_blog_filters() {
remove_filter( 'excerpt_length', 'generate_excerpt_length', 15 );
remove_filter( 'excerpt_more', 'generate_blog_excerpt_more', 15 );
remove_filter( 'the_content_more_link', 'generate_blog_content_more', 15 );
}