In SnapWidget
- Create your widget, or open an existing widget from your dashboard.
- Click Install Widget.
- In the Install Widget window, click Copy Code.
Find your widget ID
Look at the code that you copied. Your widget ID is the value ofdata-widget-id. If your code has an <iframe>, your widget ID is the part of the address after /embed/.
For a review widget, your widget ID is the value of data-reviews-id, or the part of the address after /embed/reviews/.
These steps are for feed, grid and review widgets. They are not for popup and banner widgets.
In Replit
- Open your project in Replit.
-
Paste this prompt into the Replit Agent chat. Put your widget ID in it first.
-
For a review widget, change two things in the prompt:
data-widget-idtodata-reviews-id, and “Instagram feed” to “reviews”. -
If the
<div>in your code has astyle, add the samestyleto the<div>in the prompt. It has the size of your widget. -
If your code has lines with
snapwidget-lightbox, your posts open in a pop-up. Add this line to the end of the prompt: - Publish your site.
Check your widget
Open the page in your browser. The widget shows your latest Instagram posts. If the widget is too narrow or too wide, give the element around the widget a width, for examplewidth: 100%.