LORD OF THE WIX

Studio Editor: Adding a Custom Element

Lord Of The Wix · Oct 25, 2026

Enhance your client's site with your own elements. You can add any Javascript component by linking a custom element to a server URL or a code file. If needed, you can set more attributes directly from the editor.


Before you begin:


Make sure your client's site has a connected domain and no Wix ads.


What are custom elements?


Custom elements let you use your own HTML tags. These elements work across all supported browsers, and can be used with any JavaScript ES6 library or framework that works with HTML 5.


When embedding a custom element, there are some requirements to keep in mind:



Tips:



Adding and setting up the custom element


Add as many custom elements as you need. After dragging a custom element to your page, define its source (server URL or a Velo file) and give it a tag name so you recognize it easily in the page registry.


To add and set up a custom element:


  1. Click Add Elements

    Studio Editor: Adding a Custom Element

    on the left side of the editor.

  2. Click Embed & Social.

  3. Click Custom Element.

  4. Click the Add icon

    Studio Editor: Adding a Custom Element

    next to Custom Element.

  5. Add your script file:

    1. Select the custom element.

    2. Click Choose Source.

    3. Select how you want to add your custom element:

      • Server URL: Enter the file URL, including the file name.

      • Velo file: Select one of your Velo files.

    4. Enter a Tag Name for your element.

      Note: The tag name should be at least two words long, separated by a dash (e.g. big-weather-widget).

  6. (Optional) Adjust the element's size, docking and alignment from the Inspector panel.


Notes:



Setting the custom element's attributes


Make further adjustments to your element's properties and behavior by setting attributes. The Element Attributes panel lets you add, edit and remove attributes directly from the editor, without having to access the actual code.


Important:


The code for your custom element must acknowledge and handle the defined attributes. Otherwise, they won't function properly.


To set the custom element's attributes:


  1. Select the custom element.

  2. Click Set Attributes.

  3. Click New Attribute.

  4. Enter a name for the attribute (e.g. "rotation", "width").

  5. Enter the value for the attribute (it can be any relevant string).

  6. Click Set.


Looking for more advanced information?


Learn how to use custom elements with Velo by Wix. For specific questions and troubleshooting, check out our custom element FAQs.


This article is credited to the Wix team - https://support.wix.com/ and we thank them for that!

More PostsLet's Talk

Need A Professional Website?
Contact Us Today!