Wix
Last updated
Last updated
Create a site on wix.com
Upgrade to a Paid Plan and link a custom domain (should not have wix
in the URL). Unfortunately, Wix makes you upgrade in order to add any custom code to your site
Example:
Each widget comes with a Javascript and CSS file. To add a widget to your website, you will need to add its corresponding Javascript and CSS as Custom Code in the Settings of your Wix site.
You can navigate to this by going to https://manage.wix.com/.
In the menu, click Settings
=> Custom code
, and press the button + Add Custom Code
. Copy and paste the code below into the code snippet box.
The uri for the Javascript and CSS for each widget is as follows:
If you always want the latest version, use latest for the <WIDGET_VERSION>. However, due to the changing nature of the codebase, it is possible that the "newer" latest is no longer compatible with the "previous" latest used to develop the app. It is thus recommended that you use a specific version of a widget for consistent results.
You can find a list of widgets, versions and links here.
Every widget has Server URL (that you can turn into a local Wix Velo file) that creates the component for you if you pass in all required attributes
Example:
Source
Server URL
: https://connect.manifoldxyz.dev/wix/wix-connect.js
Tag Name
: manifold-connect-widget
Attributes:
data-multi
: true
data-network
: 1
You can find a list of widgets, versions and links here.
Widgets are styled using standard CSS. You can write your own styles by creating a Custom Code block in the sites settings at manage.wix.com (Just like how you installed the widget).
You can add a code snippet like this.
Some widgets may include links pointing to additional stylesheets. These additional stylesheets (usually named <WIDGET_NAME>.manifold-light.css
or <WIDGET_NAME>.manifold-dark.css
) build on top of the base stylesheet (usually named <WIDGET_NAME>.css
), thus the additional stylesheets should be included after the base one.
Examples of commonly used features can be found here. Please feel free to use this as a starting point to building your own dApp.