Hi everyone, I tried to make an expandable text box with a 'read more' button today on a website I'm building and the coding didn't quite work out. As I'm a bit of a newb with all this I contacted customer support and I was directed to this forum for your savant advice as what I'm trying to do has specific coding requirements! See below my original email with screenshots attached.. hope it all makes sense!
Dear customer service,
I am attempting to build three expandable text boxes with a show more link using wix code on my portfolio website, on the Videos page.
When I got up to the section ''Working with Static Text'' point 3 instructed me to preview the website to see the shortened text before moving on to making the button active. It is supposed to look like the description below from point 3:
"Preview your page now to see how only the first 40 characters of your text appear, with an ellipsis at the end. Don't try clicking the button, because you haven't written its code yet."
However this does not happen. Instead I see the full text box with the Show More button below it. There are also a few coding error alerts that have come up which I have no idea how to fix.
Please see attached the view of the page in preview, as well as the Java Code I have put in so far as well as the error messages when I preview.
The error in the coding panel for line 2 says the ''short text is unread''. I am unsure how to correct this as to the best of my knowledge I have followed the tutorial instructions. My java knowledge is at a beginner level.
Can you please have a look and provide guidance on how I can move past this stage and continue building my expandable text boxes?