Limited Support
Our team is currently on holiday, so support will be limited during this period. Response times may be slower than usual, and some inquiries may be delayed.
We appreciate your patience and understanding, and we’ll resume our usual support by the end of August.
Hello
If the administrator comment his own post, it's displaying in "author" color in the template, so I wish to replace "wpd-blog-post_author" by "wpd-blog-administrator", for this specific case.
Any function to do it ?Â
May be by doing something in Jquery based on the "wpd-tooltip" value ?Â
But I don't know how doing this.
Â
thanks
If you want to replace the "Author" label with "Administrator" you can use the hook code below:
add_filter("wpdiscuz_author_title", function ($label, $comment) { global $post; if ($comment->user_id == $post->post_author) { $label = __("Administrator", "wpdiscuz"); } return $label; }, 10, 2);
Put the hook code in the WordPress active theme functions.php file. Helpful article: https://www.wpbeginner.com/plugins/how-to-easily-add-custom-code-in-wordpress-without-breaking-your-site/
HiÂ
yes I already did that but the color behind stay as "author" color not as "administrator".
So i'm trying a hook to add the wpd-blog-administrator class if the label is equal to "Administrator"