Collapsible Text

What I’m trying to do

Im trying to edit a single line of text within a collapsible Text box to have a different design. The text box contains description of a package (service) and at the bottom the price; which I would like to display in a different style (larger and different color) without affecting the rest of the text.

I’ve tried to add a separate text box within the collapsible box but no success.

Any help would be greatly appreciated!

Thank you

Hi, @Marina_Garcia-Trevij !!

This method probably isn’t the one Wix intends or recommends, but I wanted to share that adding a <span> tag directly inside the text field of a collapsible text box does allow you to apply individual styles. It technically works. :innocent:

Collapsible text is perfect for longer content like paragraphs and descriptions. It's a great way to give people more information while keeping your layout clean. Link your text to anything, including an external website or a different page. You can set your text box to expand and collapse when people click, so they can read more or less info.
<br>
<span style="color:red; font-size:24px;">Only this part is red and large</span>

I’m sharing this also because, if this behavior is actually a bug, it may be something Wix should consider fixing. I’m not sure whether this is an intended feature or not.

If Wix didn’t design this to be possible, then it’s better not to rely on it, as it may become unstable in the long run. In that case, I’d recommend avoiding the collapsible text box and using a different approach—for example, an accordion element might be a simpler and more reliable solution. :raising_hands:

1 Like

Hi, onemoretime

thank you very much for your input and suggestions. As you had mentioned, I couldn’t make the collapsable text work the way we needed to and instead opted for the accordion element solution. It seems to work for now but time will tell once we launch the site.

Thank you again and sorry for the late reply!

A screenshot of the solution:

1 Like