Hello everyone,
I've been working on a problem all day, I've read through the forum and haven't found a suitable solution yet.
I would like to allow logged in users to post comments anonymously. I managed to no longer see the names on the website (Styles & Colors -> CSS -> wpd-comment-author { display: none !important;)
But the names are still displayed in the source code and are therefore visible to other users.
Since users only access the page logged in for other reasons, I unfortunately cannot set the option in the form to post without a name.
Is there a solution to delete the names there?
Thank you
Tobi
Hi @tobi,
You can use the JS code below:
jQuery(document).ready(function(){ jQuery(".wpd-comment-author").remove(); });
Helpful reference: https://www.wpbeginner.com/wp-tutorials/how-to-easily-add-javascript-in-wordpress-pages-or-posts/
Unfortunately this doesn't work for me. But maybe I'm doing something wrong.