- This topic has 24 replies, 3 voices, and was last updated 2 years, 8 months ago by
Fernando.
-
AuthorPosts
-
December 27, 2022 at 12:58 am #2474451
Ravi Saive
Hi Team,
I want to highlight the comments posted by the Contributor and Administrator account on the posts.
Find more info in the private section…
December 27, 2022 at 1:23 am #2474466Fernando Customer Support
Hi Ravi,
The code for that should be something like this:
.bypostauthor { background-color: #e7f8fb; }
It’s not adding the
bypostauthor
to your author’s comment. Can you create a test post with a different author, and test if the code works there?December 27, 2022 at 9:40 pm #2475310Ravi Saive
Hi Fernando,
Yes, I can’t find
bypostauthor
in the author’s comment, how could we add it? what’s the solution? I have several authors, it’s a multi-blog author site.I added the given code, but it’s not working…
My requirement is:
When a WordPress admin replies the comment should be highlighted with an Admin badge…
Similarly, when a Post author replies comment should be highlighted with an Author badge…December 27, 2022 at 10:27 pm #2475329Fernando Customer Support
Hi Ravi,
Have you tested this?:
Can you create a test post with a different author, and test if the code works there?
What happened? GeneratePress has no control over this class. It’s a WordPress feature.
Can you also try #1 here and check if that code will work?: https://docs.generatepress.com/article/debugging-tips/
December 27, 2022 at 11:34 pm #2475361Ravi Saive
Hi Fernando,
I created another article with a different author, but the code is not working…
December 27, 2022 at 11:42 pm #2475364Fernando Customer Support
Can you disable all non-GP plugins and add a new comment with that author to test? If you have a staging site, it would be good to test there instead.
December 28, 2022 at 12:10 am #2475382Ravi Saive
Hi Fernando,
I tested on the staging site as well, but no luck the code is not working at all, even after disabling all non-GP plugins…
December 28, 2022 at 12:20 am #2475387Fernando Customer Support
Are you using a custom comments section template? For instance, how did you add the
comment-reply-title
– Got something to say? Join the discussion.?December 28, 2022 at 12:26 am #2475393Ravi Saive
Hi Fernando,
No I am not using any custom comments template, I just used the following code in child functions.php to set the title.
//change text to leave a reply on comment form add_filter( 'generate_leave_comment','tu_custom_leave_comment' ); function tu_custom_leave_comment() { return 'Got Something to Say? Join the Discussion...'; }
December 28, 2022 at 12:29 am #2475397Fernando Customer Support
I see.
Can you provide admin login credentials so we can take a closer look?
Please use the Private Information field for this: https://docs.generatepress.com/article/using-the-premium-support-forum/#private-information
December 28, 2022 at 12:32 am #2475403Ravi Saive
Hi Fernando,
I can’t give you admin login details, but you can access my machine via Anydesk.
December 28, 2022 at 12:34 am #2475406Fernando Customer Support
Sorry, we don’t have Anydesk. If you can share the login credentials to the staging site, that would be great.
December 28, 2022 at 12:37 am #2475410Ravi Saive
Hi Fernando,
The staging is on my local machine, you can download and run Anydesk.
December 28, 2022 at 12:47 am #2475412Fernando Customer Support
Can you share the credentials to the live site instead? We won’t touch/edit anything. We’ll just check some things.
December 28, 2022 at 12:51 am #2475416Ravi Saive
Sorry, I can’t give an admin login, better if you access my local staging via Anydesk…
-
AuthorPosts
- You must be logged in to reply to this topic.