Sample Flows

This article shares some possible use cases you could support, as well as an example flow that supports each use case. You're certainly not limited to these use cases, but they can be a helpful jumping off point as you plan your implementation.

Manage a site's custom embeds

You can manage custom embeds on a site, including updating the embeds' positions after a site structure update.

This flow demonstrates how to list existing embeds, update their content and position, and create new embeds.

  1. Call List Custom Embeds to retrieve the existing custom embeds. The change will be applied immediately upon the next site render.
  2. Call Update Custom Embed to change the content and position of an embed. You must pass the embed ID, revision, and the fields to update.
  3. When relevant, call Create Custom Embed to add a new custom embed.

Add a banner to a site with a custom embed

You can add a banner to a Wix site with a custom embed.

To add a banner to a site:

  1. Call Create Custom Embed with functional code positioned in the HEAD section.
  2. Call List Custom Embeds to verify that your embeds are properly configured and enabled.
Did this help?