Force use of Manual Excerpt

Hello,

I am using the Employees widget on a Widgetized page, and the current excerpt displayed below the photo and name is truncated.

I have altered functions.php to enable entry of a manual Excerpt in the page editor. How can I force the theme to use this?

Cheers

Hello there,

Edit the inc/framework/widgets/front-employees.php file. Find the below code block:

    <div class="employee-content">
    	<h3 class="employee-title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
    	<?php echo wp_trim_words( get_the_content(), 12 ); ?>
    </div>

You’d need to remove and replace this line with your function.

    <?php echo wp_trim_words( get_the_content(), 12 ); ?>

Please be advised that since you’re editing the core theme’s file, you’d loose your edit when updating the theme. Thus you’d need to redo the changes manually.

Regards,
Kharis