• 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 8 years, 2 months ago by josflachs.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Theme Author ThemezHut

    (@pubudu-malalasekara)

    Hi @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

    (@josflachs)

    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.