Note: This feature is only available in Wix Studio and is not yet available to all Wix Studio users.
Wix Studio provides a pre-built example page that demonstrates some of Velo's features:
- Text Manipulation: Set and change text content dynamically.
- Element Visibility: Show and hide page elements.
- Expandable Sections: Create and manage foldable content areas.
This article explains how to access and use this example page.
To open the example page with code snippets:
- Open a Wix Studio site that you haven't added code to yet.
- In the left sidebar, click the Code icon and then Start with an example.
A new page named "Get Started with Code" is created.
Tip: If you've already enabled coding, you can access the example page by clicking then Help > Getting Started in the left sidebar.
The "Get Started with Code" page demonstrates basic Wix Velo functionality. Here's how to get the most out of it:
- Review the examples: The page features several interactive demonstrations.
- Test the behavior: Preview to see how each example works.
- Study the code: Examine the snippets associated with each example.
- Modify and experiment: Change the code and observe the effects.
- Preview your changes: Check the results after modifying the code.
To see an example in action:
- Go to the "Get Started with Code" page.
- Choose an example from the page, such as the "Change text on button click" example. The following screenshot shows this example:
- In the code editor, review the existing code for the example.
- Modify the code:
- Find the line that sets the text for the button.
- Change the text inside the quotation marks.
- Click the preview icon in the top right corner to see your changes.
- Click the blue "Click to Change Title" button. The existing text changes when you click the button.
After exploring the examples:
- Use these examples as inspiration for your own Wix Studio site.
- Explore the Wix Velo API Reference for all API functionality.
- Visit the Wix Velo Examples to see even more examples.