- This topic has 8 replies, 3 voices, and was last updated 9 years, 3 months ago by
Tom.
-
AuthorPosts
-
September 16, 2014 at 6:58 am #30285
mike
How do I remove date and time from comments? also when i reply to people as a comment it says my name is ADMIN can i change it?
thanks in advance.
September 16, 2014 at 11:21 am #30341Tom
Lead DeveloperLead DeveloperHi Mike,
This CSS should remove the date from comments:
.comment-metadata a { display: none; } .comment-metadata .reply { color: transparent; } .comment-metadata .reply a { display: inline-block; }Let me know if that works or not.
As for your name, if you go to “Users > Your Profile”, you can edit the name that’s displayed publicly.
September 17, 2014 at 4:51 am #30838mike
Tom.
It worked thank you sooo much! you guys are great!!!
September 11, 2015 at 5:48 am #136009Sha
Hi Tom,
How about removing it entirely from your page. removing it for user as well as for search engine.
Regards
September 11, 2015 at 9:13 am #136058Tom
Lead DeveloperLead DeveloperMaybe try a plugin like this: https://en-ca.wordpress.org/plugins/hide-wp-comment-author-link/
November 30, 2016 at 9:27 am #249808Ahamed
Hi,
I tried this css,
.comment-metadata a {
display: none;
}.comment-metadata .reply {
color: transparent;
}.comment-metadata .reply a {
display: inline-block;
}[IMG]http://i64.tinypic.com/2vvjpsl.png[/IMG]
[IMG]http://i65.tinypic.com/qp5aj6.png[/IMG]
See the images.
How can i take out the timestamp and the additional |
Even if i log out from admin,
it still appears weirdly.[IMG]http://i65.tinypic.com/2q9xque.png[/IMG]
November 30, 2016 at 9:57 am #249826Tom
Lead DeveloperLead DeveloperHmm, unfortunately to do that you would need to overwrite the entire comments function: https://github.com/tomusborne/generatepress/blob/1.3.40/inc/template-tags.php#L110-L169
Adding that function to your child theme/custom plugin/Code Snippets plugin (including the function_exists wrapper) will allow you to make changes to it.
November 30, 2016 at 10:36 am #249849Ahamed
Hi,
So you are saying it is not possible to remove the comment metadata fully.
and maybe just place the edit/reply button beneath the comment?Like this,
[IMG]http://i63.tinypic.com/25zl8nt.png[/IMG]Regards
November 30, 2016 at 8:31 pm #250025Tom
Lead DeveloperLead DeveloperBy overwriting the generate_comment() function, you can remove/add/change whatever you like.
So you would paste that entire function highlighted into your child theme functions.php/custom plugin/Code Snippets plugin, then make your adjustments.
That way you can remove the bar: https://github.com/tomusborne/generatepress/blob/1.3.40/inc/template-tags.php#L144
And the time stamp: https://github.com/tomusborne/generatepress/blob/1.3.40/inc/template-tags.php#L141
-
AuthorPosts
- You must be logged in to reply to this topic.