Adding your Instagram, Facebook or Twitter widget to Wix is easy. Follow these steps to create your widget.

Once you've created your widget, follow the steps below to add it to your website.

<insert video>

Overview of WIX handling the widget snippet code

  • Adding your snippet is done via Custom Embedded Elements. Wix displays the widget iframe inside a Wix iframe (thus sandboxed) and although this works perfect for displaying the widget on your page, it doesn’t allow for properly displaying a selected item in a Lightbox display. The size of the Lightbox is limited to the size of the area created for displaying your widget.
  • We therefore suggest that you create your widget on your SnapWidget dashboard with an Instagram Popup instead of a Lightbox display for the Photo Link.
  • To add the widget snippet to your site we won’t be using the full snippet code as we would normally do. The normal widget contains all the links to the JS and CSS files. For WIX we will only use the <iframe> line with some changes made to the contents. The two widgets we will be using are the Grid and the SlideShow widgets.
  • The process of adding your widget is the same for pages as well as blog posts.
  • The following code is the contents of the responsive widgets with the Photo Link set as Instagram Popup (This is the same for both Grid and SlideShow widgets, only the SnapWidget ID differs).
<!-- SnapWidget -->
<script src="https://snapwidget.com/js/snapwidget.js"></script>
<iframe src="https://snapwidget.com/embed/123456" class="snapwidget-widget"
allowtransparency="true" frameborder="0" scrolling="no" style="border:none;
overflow:hidden; width:100%; "></iframe>
  • For WIX we are not going to populate any Custom HTML textboxes, we are only going to enter a website address (URL) to display your widget, so we will create the URL of the widget using the contents of the iframe tag. This will then become the following, again the same for both widgets, only the SnapWidget ID differs. We won’t be using the iframe width setting, the setting will be done in the editor. The only part we are using to form the URL is the iframe src (the absolute path) as well as the class name (the parameter) separated by ?.
https://snapwidget.com/embed/123456?class="snapwidget-widget"

Start

  • Log into your Wix website. On your dashboard click on Site Actions and select Edit Site.
  • Click on the Menus & Pages menu.
  • In the Site Menu, select the page you want to add your snippet to.
  • Or click on Add Page to add a new page.
  • Once you have selected (or added) a page, click on the close button (X) to close the Site Menu menu.
  • Your page will then be displayed in the editor, ready to be decorated with your widget.
  • Click on + Add to add an item to your page.
  • Click on Embed.
  • Under Custom Embeds, drag the HTML iframe element onto your page.
  • Click on Enter Code and make sure the Website Address option is selected.
  • Insert the prepared snippet (as described above) in the text box under What’s the website address? and click on Apply.
  • Click on the close button (X) to close the HTML Settings dialogue box.
  • You can use any of the drag handles to resize the widget display area if required. Try and resize your widget so that no scrollbars are visible. If you make the size of your widget too small the social media icons won’t be displayed properly.

  • You can also move the widget area around in the selected area.
  • Resizing, placement and alignment can also be done via your Editor Toolbar (located on the right-hand side).
  • Click on Publish to publish your changes to your website. You could also use the Preview option to view the result before you Publish.
  • Your page should look like something similar to this.

The above applies to the Grid widget. For the SlideShow widget the process is exactly the same but here are some pics to show what it looks like.

  • If you click on any of the images in your widget (Grid or SlideShow), the Instagram Popup will then be displayed as follows.
  • The Instagram Popup is always displayed on your main display. If you have only one screen or if you are working on your main screen (in a multiple-display setup) it is displayed over your WIX webpage.
Did this answer your question?