Features & Functionality

How do I add embed code to my Wix website?

Adding custom embed code to your Wix website is straightforward and can be done using Wix's built-in embedding features. Whether you're working with the classic Wix Editor or the newer Wix Studio, you have flexible options to integrate HTML, JavaScript, or third-party widgets into your site.

Using the Classic Wix Editor

In the traditional Wix Editor, adding embed code is a simple process:

  1. Open your site in the Wix Editor
  2. Click the Add button (+) on the left sidebar
  3. Navigate to Embed and select HTML iframe (may also appear as "Embed a Site" or "Embed a Widget")
  4. A gray iframe box will appear on your page—drag and resize it to fit your design
  5. Click Enter Code and choose the Code option
  6. Paste your custom HTML, JavaScript, or widget embed code
  7. Click Update to save and display your embedded content

For more advanced JavaScript functionality, you can enable Dev Mode (Velo by Wix) from the top menu. This allows you to create dedicated JavaScript files and have greater control over script management.

Using Wix Studio

If you're using Wix Studio, the process is even more streamlined:

  1. Open your site for editing in Wix Studio
  2. Click the Add Elements symbol (+) in the top-left corner
  3. Select the Embed & Social category
  4. Choose Embed Code and click the plus sign (+) to add a new embed code box
  5. Paste your custom HTML or JavaScript code directly into the box
  6. Your embedded content will render immediately on your site

Specialized Embedding Options

Wix also offers specialized elements for common embed types. For example, when embedding YouTube videos or popular widgets, you can use dedicated video or widget elements found under Add Elements > Embed. This provides a more user-friendly integration process without needing to handle embed codes manually.

Important Considerations

When embedding external content, keep in mind that Wix supports basic HTML and JavaScript snippets. However, complex scripts that depend on server-side processing or require advanced permissions may have limitations. Always test your embedded content after adding it to ensure it displays and functions correctly on your live site.

By following these methods, you can easily enhance your Wix website with custom forms, analytics tools, interactive widgets, and other third-party services to create a more dynamic and feature-rich online presence.