Site logo

Archived topic

Add post excerpt in elements header

3 replies · Started by Joshua on June 13, 2020

Viewing posts 1–4 of 4

I found a possible solution here under the 4th example: https://docs.generatepress.com/article/page-hero-examples/

However, whenever I add that PHP into my functions.php, I get an error. Should I be adding it somewhere else?

I just want the post excerpt to display on my post header created in elements.

I feel like the solution is probably right in front of me, but I'm completely missing it.

Thanks!

aah! I must have done this before previously, the code was already in my functions.php except toward the beginning. That's why it kept giving me errors.

Thanks, Leo!

No problem :)

This archived topic is closed to new replies.