Archived topic
Paragraph below the post title
21 replies · Started by Liran on September 17, 2020
We can probably just hide it with CSS.
Can you link me to the page in question?
What do you mean by just hide it?
If I recall correctly, you said that we can make the excerpts different.
I'm a little lost as this topic was from a while ago.
Can you link me to the page in question so I can see what has been done and what the issue is?
I'm currently using the custom excerpt to show a paragraph underneath the titles.
I followed the instructions here: https://docs.generatepress.com/article/page-hero-examples/#example-4
Then created a hook element and added the shortcode.
And it works!
However, I want the blog/archives to show the default excerpt instead of the custom excerpt.
Does that make sense? If not, I can leave you a link.
You can try adding this PHP snippet to your site:
add_filter( 'get_the_excerpt', function( $text ) {
if ( !is_single() )
return wp_trim_excerpt();
return $text;
});
This will return the auto excerpt unless on the Single Post.
Then the method i provided earlier should work for you.
Thanks, everyone. You're the best!
Glad we could be of help