Skip to main content
Eva
Helper ⭐️
Mar 18, 2024 8:23 AM UTC
Solved

Hide the quote string for answers/replies or make it look not clickable in closed topics? 

Hello,

when a topic is closed for comments, the UI string for answering/replying still does show.  Like in this example. Also in replies created in Control.

In our private community, a user wondered why she cannot reply/answer a closed topic.  I checked:

The stings for quoting look clickable in both, the topic and in the admin’s reply created in Control, just like the strings for liking and subscribing, but clicking has no effect.
(I have to admit that our message in the closed-topic box is not clear enough, roughly translating to Your ...contacts will be happy to answer any questions or feedback you may have):

--> is it possible to hide the quote string or make it look not clickable in closed topics?
Or is the only possibility here to make the info in the closed-topic box more specific and meaningful?

thanks!

arminfpop
arminfpopAnswer
Gainsight Employee ⭐️⭐️
Mar 19, 2024 4:08 PM UTC

@Eva & @DannyPancratz - this should work. 

<script>

if (document.querySelectorAll(".qa-mesg-topic-closed").length) {
document.querySelectorAll("a.qa-icon-quote.post__action-link").forEach((quoteLink) => {
quoteLink.style.display = "none"
})
}

</script>

 

History & Coffee - preferably at the same time.

8 replies

DannyPancratz
VIP ⭐️⭐️⭐️⭐️⭐️
Mar 19, 2024 1:18 PM UTC

Or is the only possibility here to make the info in the closed-topic box more specific and meaningful?

Yes, you can edit this phrase to your liking. 

 

--> is it possible to hide the quote string or make it look not clickable in closed topics?

Not sure on this one. You can definitely hide the quote option with CSS, but only on closed topics would probably require a third party script for the conditional logic. 

Translate
FYI: I am no longer active in this community
arminfpop
Gainsight Employee ⭐️⭐️
Mar 19, 2024 2:30 PM UTC

Hi, @Eva! 

As Danny said, you can hide the button for closed topics by adding some Javascript to your Third Party Scripts. 

Essentially, you will want to hide the quote button if the banner exists, and do nothing if it does not. The element should look something like this:

 

 

 

 

Hope that helps, and let me know if I can help with anything else.

Translate
History & Coffee - preferably at the same time.
DannyPancratz
VIP ⭐️⭐️⭐️⭐️⭐️
Mar 19, 2024 2:34 PM UTC

@Eva if you or someone else figures out the javascript, please share. I just realized that I have this same use case. 

Translate
FYI: I am no longer active in this community
Eva
EvaAuthor
Helper ⭐️
Mar 19, 2024 2:38 PM UTC

 

Or is the only possibility here to make the info in the closed-topic box more specific and meaningful?

Yes, you can edit this phrase to your liking. 

 

--> is it possible to hide the quote string or make it look not clickable in closed topics?

Not sure on this one. You can definitely hide the quote option with CSS, but only on closed topics would probably require a third party script for the conditional logic. 

Thanks!
I kind of expected this 😅
So I think, our message in the closed-topic box needs to be improved/clearer for users.

(But it would be nice if the quote string could be hidden in this case, one day….
registered users might wonder why there’s a message (by a Control user) if they can’t answer) 


…..ah new replies while I was typing…...I will check the third-party script and let you know here. Thanks 👍

Translate
arminfpop
arminfpopAnswer
Gainsight Employee ⭐️⭐️
Mar 19, 2024 4:08 PM UTC

@Eva & @DannyPancratz - this should work. 

<script>

if (document.querySelectorAll(".qa-mesg-topic-closed").length) {
document.querySelectorAll("a.qa-icon-quote.post__action-link").forEach((quoteLink) => {
quoteLink.style.display = "none"
})
}

</script>

 

Translate
History & Coffee - preferably at the same time.
Eva
EvaAuthor
Helper ⭐️
Mar 20, 2024 9:12 AM UTC

Thanks @arminfpop, it works. I raise my coffee cup to you! 🙂

Translate
arminfpop
Gainsight Employee ⭐️⭐️
Mar 20, 2024 2:26 PM UTC

Great to hear, @Eva!

 

And thanks for the coffee cup raise! 😊

Translate
History & Coffee - preferably at the same time.
DannyPancratz
VIP ⭐️⭐️⭐️⭐️⭐️
Mar 22, 2024 7:31 PM UTC

Thanks @arminfpop, it works. I raise my coffee cup to you! 🙂

+1 @arminfpop. Thank you! 

Translate
FYI: I am no longer active in this community