Archived topic
Add post excerpt in elements header
3 replies · Started by Joshua on June 13, 2020
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!
Hi there,
I just tried using Code Snippets and didn't get any issues:
https://www.screencast.com/t/ufecPzwso
Can you give it a shot?
Let me know :)
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 :)