I have created an FAQ section for a service page (using WIX FAQ from the app store) but it looks rather large on the page. Rather than seeing all the questions and opening the answer to each, I’d like it say ‘Read our Frequently Asked Questions’, with an arrow to click that opens the section to read or just show the first two or three questions and then ‘see more’.
I’m sure there is a simple solution but I haven’t found it yet! This is the page:
To make your FAQ section more user-friendly, start by adding a text element saying “Read our Frequently Asked Questions” with a button labeled “See More.” Initially, display only the first two or three questions. Link the button to show the rest of the FAQ section when clicked. Use the collapsible text or Velo (Wix Code) to hide and reveal the FAQ content, ensuring a clean and organized look on your service page.
I used the collapsible text element but it doesn’t offer the text styling I want with the bolder larger font for questions and then the unbolded text for the answers.
Is there any chance you can share Velo Wix Code to hide with me and I’ll try using that and see if it helps. I’m actually using the Wix FAQ app. Do you know if I use the Velo code to make a collapsible element if I would need to chance the content to just be a text box?
I would suggest trying the following, a very simple, perhaps “childish” and not professional solution, but still a solution:
Divide frequently asked questions into 2 Wix FAQ elements;
Add a button “Any questions left?” (any name);
Connect these 3 elements into a stack:
Questions and answers;
Button;
Questions and answers.
Questions and answers, those that come after the button, set the value to “collapse” when loading the page.
Add an onClick event to the button, which will “show the FAQ element.” when you click on the button and “collapse the button itself”.
And for the section in which this stack is located, set the height setting (max-content).
$w.onReady(function () {
// Make sure the FAQ item is initially collapsed
$w("#faqElement").hide();
// Add an onClick event for the button
$w("#showFaqButton").onClick(() => {
// Show FAQ item
$w("#faqElement").expand();
// Collapse (hide) the button itself
$w("#showFaqButton").collapse();
});
});