Archived topic
Remove Comment Date and Time - Using comments.php
33 replies · Started by Jesse on February 18, 2021
Correct - I'll be sure to filter the entire output so both things are possible.
That would be amazing! Thanks so much!!
Best regards,
Jesse
Hello Tom,
Just wanted to check in and see if there is an updated ETA on v3.1.0?
Best regards,
Jesse
Hi Jesse,
It's still in active development but Tom has yet to give an ETA.
You can monitor its activities if you like though. The github page is public. :)
https://github.com/tomusborne/generatepress/tree/release/3.1.0
Hello,
I see the theme was updated to v3.0.3 today. Is it possible now to completely remove (not hide) the comment date and time stamp via filters as Tom mentioned here would be available in v3.1? Not sure if that capability was added to today's release or if I need to keep waiting.
Best regards,
Jesse
Hi there,
There's no release for the theme today. Perhaps what you saw is the GP Premium 2.0 official release.
As for the filter in question:
This isn't implemented yet. There may have been delays to fast-track the release of GP Premium 2.0.
I'll follow this up with Tom and see if he has any updates for this he's yet to push on the github page.
Hi Elvin,
Yes, it was the GP Premium update that I was referring to today.
Any updates you can provide on ETA for the theme update would be great!
Best regards,
Jesse
Tom has yet to give out any ETAs for 3.1.
I'll make sure to reply to this thread once I get any word from Tom. :)
3.1 is next on the list, we'll be sure to get this filter added :)
Hi Tom,
I see there was an update today! (I have been waiting for a long time lol)
Did this update happen to include the filter that was mentioned here: https://generatepress.com/forums/topic/remove-comment-date-and-time-using-comments-php/#post-1665933
Best regards,
Jesse
Hi Jesse,
You can see the direct changes here - https://github.com/tomusborne/generatepress/blob/master/inc/structure/comments.php
Which is in the changelog - https://generatepress.com/generatepress-3-1-global-colors-dynamic-typography/
New: generate_after_comment_author_name hook
New: generate_show_comment_entry_meta filter
Now that there's a condition, we can filter it to false so it doesn't display.
Thanks, Elvin. I added this filter, but it doesn't seem to be doing anything. Did I use the correct format? The comment date and timestamps are still there.
add_filter( 'generate_show_comment_entry_meta', '__return_false' );
Best,
Jesse
Can you confirm you're using the latest update of GP Premium?
The exact same code works on my end. See this sample post - https://dev-generate-press.pantheonsite.io/quasi-nostrum-dolor-voluptatibus/#comment-4
You can see that the commenter doesn't have any entry meta underneath - https://share.getcloudapp.com/8Lu9rox6
Yes, I just updated to version 2.1.1 which appears to be the latest version. I deleted the filter and then added it again via the Snippets plugin, but still no luck. I'm still seeing the date and timestamps on each comment. I also made sure to clear my cache.
Best,
Jesse
This fix is applied to the theme itself so it's the theme that should be updated.
This is applied on GeneratePress 3.1.0. :D