About Pinned Widgets

Warning: This feature is deprecated. Instead, consider using an embedded script.

A pinned widget is a small element that can be added to any or all pages of an existing website, and is automatically placed in a specific location on a page. 

Position

When a pinned widget component is added by the user, it'll be placed in the position you set when you registered your app. The user will be able to change the position of the app only if you provide this option from the App Settings. Use the dock UI control to automatically bind the widget placement to the control in the App Settings.

Define your app’s default position in your app's dashboard. You can place it in one of these areas of the website:

  • TOP_LEFT
  • TOP_CENTER
  • TOP_RIGHT
  • CENTER_RIGHT
  • CENTER_LEFT
  • BOTTOM_LEFT
  • BOTTOM_CENTER
  • BOTTOM_RIGHT

If you placed the widget in one of the four centered areas, you can set it to be relative to the center or fixed to the edge of the screen.

  • Vertical margin: This margin offsets the widget vertically from its center placement.
  • Horizontal margin: This margin offsets the widget horizontally from its center placement.

Once the component has been added to its default position, the user can control its position from the App Settings (if you provided that option).

Note: The app layout should fit all the positions you support, you may have more than one layout.

Examples

Set widget placement and margin (App Settings)

Copy

Get widget placement and margin (App Settings)

Copy

Placement change event (Editor, Widget)

Copy

Size

You’ll set the default size for the pinned widget in your app's dashboard, and users won’t be able to resize it in the Wix Editor.

Follow our UI/UX guidelines – we’ll show you how to decide your app’s default size, and how to create the right user experience when site visitors interact with your app.

For example, you can resize the app when a site visitor interacts with it in the live site. Make sure to reset the widget back to the default size when the user switches back to Edit mode, or when the site visitors clicks out of your app.

Example

Resize widget

Copy
Did this help?