Custom elements allow you to create advanced web components that extend beyond the standard editor elements. You can add a custom element to your site, either hosted externally or by Wix. This article guides you through the process of adding a custom element to your site.
To add a Wix-hosted custom element to your site:
public/custom-elements/ directory.customElements.define().Note: When you select Velo file, a wix-default-custom-element.js file with a sample custom element is created in your public files.
public/custom-elements directory.customElements.define().Your custom element is now ready to be used on your site.
To add an externally hosted custom element:
customElements.define().Note: Ensure the bundled JavaScript file is served over HTTPS, as Wix only accepts secure script URLs.
customElements.define().Your custom element is now ready to be used on your site.