Features & Functionality

How do you add HTML code to a Wix website?

Adding HTML code to your Wix website is straightforward using the built-in Embed HTML element. This feature allows you to customize your site with custom widgets, forms, and other HTML content.

Using the Embed HTML Element

To add HTML code to your Wix site, follow these steps:

  1. Log in to your Wix account and open your website in the Wix Editor
  2. Click the "+" (Add) button on the left sidebar
  3. Scroll down and select "Embed" or "Embed Code"
  4. Choose "Embed HTML" (sometimes labeled as "HTML iframe" or "Custom Element")
  5. A box will appear on your page where you can paste your HTML code
  6. Click "Apply" or "Update" to save your changes

This method supports HTML and inline CSS, allowing you to add custom functionality directly into your site layout.

Adding Code to Site Head or Footer

If you need to add code snippets to your site's head section (such as verification codes or analytics scripts), use the Custom Code feature:

  • Navigate to Settings > Advanced > Custom Code
  • Paste your code snippet and assign it to the head or body section
  • Choose whether to apply it to all pages or specific ones

Advanced Options with Velo

For more complex implementations involving JavaScript and dynamic interactions, you can enable Velo by Wix (formerly Corvid):

  • Click "Dev Mode" or "Velo" in the Wix editor top bar to enable it
  • Add JavaScript files via the Code Files sidebar
  • Use Wix APIs and components to interact with your embedded HTML dynamically

Important Note

While you can embed HTML code snippets, Wix does not support uploading standalone HTML files directly to your site. All custom code must be added through the Embed HTML element or Custom Code settings.

For more information about customizing your Wix site, visit Wix Support.