- This topic has 21 replies, 3 voices, and was last updated 5 years, 6 months ago by
David.
-
AuthorPosts
-
September 17, 2020 at 8:06 am #1447328
Liran
Hey,
Is there any way I can get this layout using GeneratePress?
Specifically, I’d like to have a paragraph below the post title (font should be a bit larger than a normal paragraph).
Any help would be appreciated!
September 17, 2020 at 8:28 am #1447367Leo
StaffCustomer SupportHi there,
Let’s try to tackle one question per topic so you can open a new topic for the second question.
For the paragraph underneath the title question, are you using the custom excerpt metabox for posts?
https://www.wpbeginner.com/plugins/how-to-customize-wordpress-excerpts-no-coding-required/If not we can probably make that work to show below the title.
Let me know 🙂
September 17, 2020 at 8:44 am #1447387Liran
Hey Leo,
If not we can probably make that work to show below the title.
Let me know how please!
September 17, 2020 at 8:49 am #1447395Leo
StaffCustomer SupportHmm on a second thought, using that method would mean that the blog/archives would also show the custom excerpt instead of the default excerpt word count.
Are you ok with that?
September 17, 2020 at 8:52 am #1447398Liran
Sure, I don’t see a problem.
September 17, 2020 at 9:04 am #1447413Leo
StaffCustomer SupportOk so just to make sure before we proceed.
You are ok with having the excerpt in the blog/archive page to be the same as the paragraph underneath the title on single posts?
We can make them different as well – just the methods are quite different so I want to make sure before we proceed.
Let me know 🙂
September 17, 2020 at 9:09 am #1447414Liran
I guess that would be okay. What happens if I don’t add a custom excerpt to some of the posts?
September 17, 2020 at 9:55 am #1447469Leo
StaffCustomer SupportThen there won’t be any paragraph shown underneath the post title.
Do you always want the paragraph underneath the title?
Then we will go with another solution 🙂
September 17, 2020 at 10:21 am #1447523Liran
I think it would be best if the paragraph only appears when there’s a custom excerpt (as some of my older posts don’t have it).
September 17, 2020 at 10:33 am #1447535Leo
StaffCustomer SupportOk let’s give the excerpt solution a shot first.
– Create the excerpt shortcode using the PHP snippet here:
https://docs.generatepress.com/article/page-hero-examples/#example-4Adding PHP: https://docs.generatepress.com/article/adding-php/
– Create a hook element and add the shortcode as the content:
https://docs.generatepress.com/article/hooks-element-overview/– Select
generate_after_entry_titlehook with priority 2.– Check to execute shortcode.
– Select Posts > All Posts in display rules.
Let me know 🙂
September 17, 2020 at 5:17 pm #1447892Liran
That worked better than I expected. Thanks!
September 17, 2020 at 6:42 pm #1447939Leo
StaffCustomer SupportNo problem 🙂
October 7, 2020 at 4:14 pm #1477542Liran
Hey,
Sorry to bring this thread up again, but is there a way I can show the custom excerpt only inside the post?
I know I said it’s not a problem, but I want to use the excerpt option in WP Show Posts, and it looks a bit awkward.
October 8, 2020 at 2:23 am #1478057David
StaffCustomer SupportHi there,
this topic here explains how to add the Excerpt to the Single Post below the entry header:
https://generatepress.com/forums/topic/how-can-i-add-featured-image-at-custom-location/#post-1404882
October 8, 2020 at 7:33 pm #1479490Liran
This will also be displayed in the Archive post excerpt.
Is there a way around it?
-
AuthorPosts
- You must be logged in to reply to this topic.