Archived topic
Author Image And Comments Below Single Post Heading?
21 replies · Started by Simon on May 19, 2020
Hi, is it possible to show a small image and name of the author plus the number of comments with maybe a speech bubble at the top of single posts?
Hi there,
Would any of these examples help?
https://docs.generatepress.com/article/entry-meta-style/
Wow, yes! I like example 1...
Would it be possible to have name and comments only and centralised?
Absolutely!
Just remove 'date', from this snippet:
add_filter( 'generate_header_entry_meta_items', function() {
return array(
'author',
'comments-link',
'date',
);
} );
Once that's done I'll provide the CSS to center it.
I honestly didn't expect support to be this good. Blown away honestly.
The snipped is added :)
Hmm I'm not seeing any entry meta at in single post at all.
Can you double check?
The PHP part needs to be added using one of these methods:
https://docs.generatepress.com/article/adding-php/
Oh I just pasted it into CSS code... oops. I've downloaded the snipped plugin but it's a little scary. Do I paste it in html snippet and activate?
Yes :)
Snippet added.
Still nothing showing at all.
Have you checked these things to display?
https://docs.generatepress.com/article/blog-content-layout/#single
I have now :)
Have you added the CSS here as well?
https://docs.generatepress.com/article/entry-meta-style/#example-1
Just trying, keeps coming up with fatal error. Am I putting it in the wrong place?
Follow the instructions here:
https://generatepress.com/forums/topic/author-image-and-comments-below-single-post-heading/#post-1293028
It goes into additional CSS section, ok. Done.