Title: Modify excerpt length
Last modified: January 4, 2017

---

# Modify excerpt length

 *  [josflachs](https://wordpress.org/support/users/josflachs/)
 * (@josflachs)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/modify-excerpt-length/)
 * Hi Folks, I’m getting my hands dirty on the Awaken theme, but got stuck at the
   excerpt length. In functions.php on lines 110-138 the excerpt is defined. Changing
   the value in lines 134-136:
 *     ```
       function awaken_excerpt_length( $length ) {
       	return 23;
       }
       ```
   
 *  doesn’t help me. The result is the same, no matter if I set 23 to 0, 1 or 999.
 * I can remove the whole block, however, the manual read more doesn’t work in this
   theme. Which is a bit of a bother.
 * How can I set the excerpt length, and how do I get the manual read more working?
    -  This topic was modified 9 years, 6 months ago by [josflachs](https://wordpress.org/support/users/josflachs/).

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Theme Author [ThemezHut](https://wordpress.org/support/users/pubudu-malalasekara/)
 * (@pubudu-malalasekara)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/modify-excerpt-length/#post-8620513)
 * Hi [@josflachs](https://wordpress.org/support/users/josflachs/),
 * It should work. Make sure you have cleared your caches if you are using any caching
   plugin after the code update.
 * You can add any read more text from Customizer > General Settings > Read More
   text. It is working.
 * Thank You.
 *  Thread Starter [josflachs](https://wordpress.org/support/users/josflachs/)
 * (@josflachs)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/modify-excerpt-length/#post-8620694)
 * Thanks for you fast response! It’s possible localhost is the problem, but I have
   no changes. I’m working on Ubuntu (16.10) with Firefox. I set
 *     ```
       function awaken_excerpt_length( $length ) {
       	return 5;
       }
       ```
   
 * Cleared the Firefox cache, ctrl F5, no changes. The Awaken read more button works
   fine. The manual read more does not work. I made some test articles. In one I
   placed a manual read more, followed by and H2 header. The excerpt removes all
   formatting plus the h2 header. When I open the article itself, everything is 
   perfect.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Modify excerpt length’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/awaken/2.3.1/screenshot.png)
 * Awaken
 * [Support Threads](https://wordpress.org/support/theme/awaken/)
 * [Active Topics](https://wordpress.org/support/theme/awaken/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/awaken/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/awaken/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [josflachs](https://wordpress.org/support/users/josflachs/)
 * Last activity: [9 years, 6 months ago](https://wordpress.org/support/topic/modify-excerpt-length/#post-8620694)
 * Status: not resolved