Hello there,
I´m trying to dysplay the excerpt instead of the content on a category but the excerpt lenght is set to “35” (I need more) and when I try to declare it on my child theme does not work
I find on the parent theme:
// **********************************************************************//
// ! Set exerpt
// **********************************************************************//
function etheme_excerpt_length( $length ) {
return 35;
}
add_filter( 'excerpt_length', 'etheme_excerpt_length', 999 );
function etheme_excerpt_more( $more ) {
return '...';
}
add_filter('excerpt_more', 'etheme_excerpt_more');
How I should declare it on my child theme to make work it on my theme?.
I was trying with:
if ( ! function_exists( 'etheme_excerpt_length' ) ) {
function etheme_excerpt_length() {
return 350;
}
}
Blessings.