+
diff --git a/web/app/themes/mitlib-parent/functions.php b/web/app/themes/mitlib-parent/functions.php
index 11857e3c..3a887ea0 100644
--- a/web/app/themes/mitlib-parent/functions.php
+++ b/web/app/themes/mitlib-parent/functions.php
@@ -494,6 +494,17 @@ function customize_body_class( $classes ) {
}
add_filter( 'body_class', 'Mitlib\Parent\customize_body_class' );
+/**
+ * Defines a new value for the length of the excerpt.
+ *
+ * @param int $length Number of words to include in the excerpt.
+ * @return int The maximum number of words to include from the excerpt.
+ */
+function custom_excerpt_length( $length ) {
+ return 100;
+}
+add_filter( 'excerpt_length', 'Mitlib\Parent\custom_excerpt_length', 999 );
+
/**
* ============================================================================
* ============================================================================