Site widgets are draggable UI components that Wix site owners can add to pages on their website. They enhance a site's functionality by displaying content or enabling site visitors to perform various tasks.
When working in the site editor, site owners can adjust the size of the widget, reposition it, and customize it.
You can add a site widget extension using:
Here are some factors to consider when choosing which implementation to work with:
Editor compatibility
Wix Blocks apps aren't supported in the Wix Harmony editor. Existing Blocks apps remain available for purchase on the Wix App Market for Wix Editor and Wix Studio sites. To learn more, see About Wix Harmony and Blocks.
The way to interact with a user site from your site widget extension depends on your implementation. For widgets created with Blocks, use Velo. For widgets created via the CLI, use the Site API.
Note: Most widget types can't call Wix APIs while being previewed in the site editor. Editor React Components are the exception and can call platformized APIs in the site editor.
An essential widget is crucial to your app's functionality. You can set a widget to be essential only if the widget is added as part of a site page extension. Deleting an essential widget from a site or deleting the section or page that contains it deletes the entire app. Wix users can add an essential widget to a site only once and can't duplicate it.
Note: Essential widgets are not available for Editor React Components.
Note: Essential widgets are not available for Editor React Components. You can set a widget to be essential only if the widget is added as part of a site page extension.
Important: The format of the Wix editor URL is changing due to new cookies introduced for authorization. The new URL format is {username}-{sitename}.{editor|studio|harmony}.wix.com. If your app uses CORS and whitelists specific origins, update your allowed origins to match the new format to avoid blocked requests.
Learn more about handling sandboxing in the editor.