<div>
and script.data-widget-code="{{CMS Field}}"
.You need to properly embed the Elfsight Instagram widget within Webflow's CMS so that each Collection item displays a unique widget. The issue occurs because Webflow does not automatically execute scripts added via CMS fields. Here’s how to resolve it:
Instagram Widget Code
).<!-- Replace this with your CMS field -->
, click + Add Field and select your Instagram Widget Code
CMS field.If the widget does not load correctly, try moving the script portion to the Page Settings → Custom Code → Footer:
```
```
data-widget-code="{{CMS Field}}"
.{{CMS Field}}
with the actual CMS field reference.Webflow prevents scripts from executing directly from CMS fields. To work around this, store the Elfsight widget embed code in a CMS field, dynamically insert it into an Embed Element, and use a JavaScript script in the Footer to execute the code properly.