Dear Sir or Madam,
I tried to make a Show More / Show Less Button. Unfortunately the following message appears. What did I do wrong?
Loading the code for the site. To debug this code, open masterPage.js in Developer Tools.Loading the code for the Weiterbildungen page. To debug this code, open d5d9w.js in Developer Tools.There was an error in your scriptThe element selector function (usually $w) cannot be used before the page is readyTypeError: undefined is not an object (evaluating ‘fullText.substr’)
Thanks for your answer.
Yours Sincerely,
David
See the article Corvid Tutorial: Creating a Show-More Link for detailed instructions on how to implement a more/less button.
I did it with this instruction. I tried it for 5 hours and it still doesn’t work.
Please post the URL of your site. Only authorized Wix personnel can get access to your site in the editor.
There is already the text and the button
You have the text and the button, but the code does not look anything like the code in the tutorial. You need to closely follow the tutorial - and it will work. If you have no coding experience, you may want to check out the WixArena - it’s a hub where you can look for Corvid (and other) experts for hire.
I inserted two buttons now with a specialist in “Einrichtungen” the problem is, that as long as the visiter has not clicked on the button, there is a big gap. How can I make the gap disappear?
You can’t use HTML text for more/less. I was able to get this working by changing the text plain text and then copying into new text boxes. You need new text boxes since the ones that are already in place know that they are HTML text boxes and take over the space on the screen. Changing to plain text boxes will make this work. If you still want bullets, you can use an HTML bullet character like this one: •
If you really want to use HTML, you might consider making “popups” using boxes . This will result in a different interface, but if you want HTML then it might be worth it.
Dear Mr. Yisrael
Thank you very much. Almost everything works now. There are only two small things left:
- Under “Weiterbildung” there is a cap at the end before the footnote until at least one of the buttons is opened.
- We can’t add any links. As soon as we add links in the buttons, it works once and after that if you close the button there is just a cap and the link doesn’t work anymore.
I received an answer from the wix support for number 1. Now it is only number 2 left.
I haven’t received an answer yet. Are you still here or should I create a new discussion?