I found the code to shorten the excerpt displayed in the featured post widget for my active theme. Looking at the plugin, it's pulling the_excerpt() but the problem is that with a long excerpt, it overflows and breaks the divs so sometimes it overflows the div underneath it.
I've added this to my functions.php of my child theme:
function new_excerpt_length($length) {
return 10;
}
add_filter('excerpt_length', 'new_excerpt_length');
This is SUPPOSED to be the filter to limit the excerpt length within wordpress so I don't have to actually modify the plugin that's calling that for the home page.
When I upload that to my child theme and refresh the page, it's not taking effect and still allowing all of the_excerpt to display. Any idea why that's not taking effect? I've checked the parent theme's functions to make sure it didn't have the same type of filter but found nothing.
Thanks.