Archived topic
customizing comments-link text
3 replies · Started by MaryAnn on February 22, 2022
So, this is a follow-on from an issue I had almost a year ago.
I'd like to customize the comments-link text on archive pages and on this page:
https://www.flickfilosopher.com/all-recent-posts
(which WP doesn't recognize as an archive page)
so that "Leave a comment" becomes "no comments yet" and "X Comment(s)" becomes "X comment(s)".
As per my earlier request, this is being handled on my post pages with an element, but the meta on these listings pages is different, so I can't just apply that element to these pages. (And also I can't figure out how to apply the relevant stuff from that element to these pages!)
It seems like there should be an easy filter that will handle this, but I can't figure out what shape that would take.
Thanks for any help!
Hi there,
You should be able to create a post meta block element for this:
https://docs.generatepress.com/article/block-element-post-meta-template/
https://docs.generatepress.com/article/dynamic-data/#comments-number
Thank you!
No problem :)