Hello everybody! My name’s Ben.
I’ve been meaning to create a “News” section for my website, and to make it more browsable I’ve used Wix’s great tutorial on how to hide and collapse text with “Show more” and “Show less” buttons .
After fidgeting with the code I managed to get the result I wanted on my (unpublished) website’s page except for one thing: the design features of the text, which do show in editor mode, disappear in preview mode. More precisely, the features of the very first line are applied to the whole text, so that instead of having date, title and body neatly distinguished, everything appears in cyan size 14:
I thought it might be a similar problem with the situation described here , although I do not use datasets.
I did not do anything with the code besides duplicating it to make more than one “Show more”/“Show less” button for each news item. In fact the problem occurred before I did this.
I’ve also tried to reinitialize the formatting of the text elements but it doesn’t seem to help: if I ask Wix to show the first line in red color, the whole text will show up in red.
Any idea on how to solve this issue?