Site logo

[Resolved] Add post excerpt in elements header

Home Forums Support [Resolved] Add post excerpt in elements header

Home Forums Support Add post excerpt in elements header

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1326824
    Joshua

    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!

    #1326891
    Leo
    Staff
    Customer Support

    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 🙂

    #1326921
    Joshua

    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!

    #1327530
    Leo
    Staff
    Customer Support

    No problem 🙂

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.