Site logo

[Resolved] Excerpt under title issues

Home Forums Support [Resolved] Excerpt under title issues

Home Forums Support Excerpt under title issues

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1102346
    sipahi

    Hello,

    By using this method https://docs.generatepress.com/article/page-hero-examples/#example-4 I am trying to add excerpt text under title.

    As you can see here, I achieved that.

    Now the problem is, in the customization > layout > blog – featured images – (I select post)

    The featured image location cannot be changed. Selecting “above title” “below title” do not make a difference. Before adding page hero element, I was able to select featured image location.

    One of my other goals is to achieve a similar look I had with my old theme

    https://i.imgur.com/gOjH1pb.png as you can see here, the excerpt is within the container.

    Please notice the title and excerpt is somewhere between content container and header. I want to keep both this way https://i.imgur.com/gOjH1pb.png

    Thanks in advance

    #1102351
    David
    Staff
    Customer Support

    Hi there,

    keep the PHP snippet you used to create the shortcode.
    Then delete the Header Element and create a new Hook Element:

    https://docs.generatepress.com/article/hooks-element-overview/

    Add the shortcode to the Hook Content.
    Select the after_entry_title hook
    Check Execute Shortcodes.
    Set Priority to 5.
    Then set your display rules for Post > All Posts.

    #1102370
    sipahi

    Thank you @David it worked.

    #1102371
    David
    Staff
    Customer Support

    Glad to be of help

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