Archived topic
Excerpt under title issues
3 replies · Started by sipahi on December 12, 2019
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
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.
Thank you @David it worked.
Glad to be of help