Archived topic
Post Info: Comments
11 replies · Started by Simon on January 21, 2021
Hi,
Before moving over to GP I had both author and #comments displayed on a single post (not archive), just below the title. Now it's only showing the author:

I have this in my additional CSS:
.post-info {
color: #0080e8;
text-align: center;
}
Is there any way to get # of comments displayed again?
Within customisation, I only see the option to turn it on for archive, not single posts.
Many thanks
Simon
Hi Simon,
Can you add this PHP snippet first?
add_action( 'wp', function() {
if ( is_single() ) {
add_filter( 'generate_show_comments', '__return_true' );
}
} );
Adding PHP: https://docs.generatepress.com/article/adding-php/
Let me know :)
That's great. Created and activated everywhere. Looks good :-)

Thank you so much!
No problem :)
Hi there,
Sorry to reopen this but I did something, messed it up and I don't know how to fix it.
My author image is showing on desktop but not on mobile. This is since I changed my gravatar image a week ago... thought it would restore in time but it hasn't.
Desktop:
Mobile:
Is there any possible way to fix this?
Have you fixed this?
I'm seeing the same image on desktop:
https://www.screencast.com/t/rXRSxMPV
And mobile:
https://www.screencast.com/t/McpzTkTbk
It should be my gravatar image.
Hi Simon,
I see the frog image for both desktop and mobile, so it's still not updated I assume.
This wordpress ticket might help, have a look.
https://wordpress.org/support/topic/gravatar-profile-not-updating-on-self-hosted-site/#:~:text=First%20thing%20to%20try%20is,SiteLock%2C%20manage%20your%20caching%20there.
Let me know.
I cleared the cache on my site but still no image.
I wonder if you need to wait a couple of days.
The theme itself has no control over this - the code simply pulls the image from gravatar.
Alright mate, no worries. Thank you.
No problem :)