Skip to main content
Solved

How do I change the spoiler text?

  • May 1, 2020
  • 9 replies
  • 214 views

LPortalupi
Forum|alt.badge.img

How do I change the default spoiler text? If it’s a phrase, could someone please share the Module and Key with me?

Ours looks like this, but I noticed on this inSpired community, “Show content” has been changed to “Learn more!” I’d like to do the same.

Thanks!

 

Best answer by Julian

I noticed on this inSpired community, “Show content” has been changed to “Learn more!” I’d like to do the same.

That was me… :)

Here what you need to enter:
 

Module Common
Key bb.spoiler.show-content

 

Let me know if it worked!

9 replies

Julian
Forum|alt.badge.img+8
  • Gainsight Employee ⭐️⭐️⭐️
  • Answer
  • May 1, 2020

I noticed on this inSpired community, “Show content” has been changed to “Learn more!” I’d like to do the same.

That was me… :)

Here what you need to enter:
 

Module Common
Key bb.spoiler.show-content

 

Let me know if it worked!


LPortalupi
Forum|alt.badge.img
  • Author
  • Helper ⭐️
  • May 4, 2020

That worked. Thank you, @Julian!


Daniele Cmty
Forum|alt.badge.img+1
  • Helper ⭐️⭐️
  • June 16, 2021

@Julian 

How do you do that exactly?

Where do I change the setting?

Cheers :)


Julian
Forum|alt.badge.img+8
  • Gainsight Employee ⭐️⭐️⭐️
  • June 16, 2021

Good question, sorry, usually I link to FAQs that explain this step-by-step so that everyone can follow. :)

You will need to add this as a new "Phrase”in the Customization settings. Simply go to [Customization] - [Phrases] in your Control Environment, and then click on "add Phrase” in the top-right corner:

 

In the next screen, you will then need to add the codes above so that the platform knows which text you'd like to change:

Under "Singular” you can then add what you’d like to have as the text. You can ignore “Plural”, as this only applies if there is a plural form of this phrase (e.g. topic / topics).

Hope this helps!


Daniele Cmty
Forum|alt.badge.img+1
  • Helper ⭐️⭐️
  • June 16, 2021

Sounds good! Thank you for the detailed instructions. I’ll try it out!

That would apply to alll spoilers in my community, right?
There would be no way to customize the spoiler button text individually by post, right?

Thank you!


Julian
Forum|alt.badge.img+8
  • Gainsight Employee ⭐️⭐️⭐️
  • June 16, 2021

Yes, this applies to all spoilers on the community.

I was thinking maybe you can tweak this via custom CSS so that, depending on the category, other text is being displayed. That would be the only option but I cannot say for sure if that is possible, unfortunately.


copperml
  • Contributor ⭐️⭐️⭐️⭐️
  • June 21, 2021

Hi @Julian, I tried this but am not seeing the changes. Did I do something wrong or does it take time to adjust?

 

 


Julian
Forum|alt.badge.img+8
  • Gainsight Employee ⭐️⭐️⭐️
  • June 22, 2021

Hi,

I think you simply added this phrase in the wrong order. :) If I check our phrase, it looks like this:

Please delete (or ignore) this phrase and then enter a new one, but make sure to add it in the right fields.

By the way, I also found another phrase which is related to this one, maybe also relevant for you @Daniele Cmty: There is also a phrase for the text to close a spoiler after opening it:

Module: Common

Key: bb.spoiler.hide-content


copperml
  • Contributor ⭐️⭐️⭐️⭐️
  • June 24, 2021

Thank you @Julian that was it! :)