wpDiscuz - WordPress Comment Plugin
Share:
Notifications
Clear all

[Solved] Hide reply button but have a nested layout


laucha92
Posts: 7
Topic starter
(@laucha92)
Active Member
Joined: 1 year ago

Hi,

I'm trying to hide the reply button in every comments because I do not want a discussion section. My website is open to comments that our agents will answer, so I don't want the reply button to show in the comments (at least for guests). In other words, guests should be able to leave a comment but not to reply the existing comments.

The only way that I found to do this is to disable the "Enable threaded (nested) comments" option but when I do this, all the comments are at the same level so it is difficult to understand which comments are questions and which ones are the answers to each question.

How can I solve this?

Thanks!

Gabriel

Topic Tags
2 Replies
Asti
Posts: 3913
 Asti
Support
(@asti)
Support member
Joined: 4 years ago

Hi @laucha92,

You can hide the reply button for guests via the CSS code provided below:

body:not(.logged-in) .wpd-reply-button {
display:none !important;
}

Put the code in the Top Admin Bar > Customize > Additional CSS > "Additional CSS" textarea, save it, delete all caches and check again. 

Please don't forget to press Ctrl+F5 (twice) on the frontend before checking.

laucha92
Posts: 7
Topic starter
(@laucha92)
Active Member
Joined: 1 year ago

Thanks!

Share: