Skip to main content
Paste your SnapWidget code into the content of a Grav page. In Grav 2, the GFM Tag Filter setting shows <iframe> and <script> tags as plain text, so turn it off first. The same steps work for Facebook, X, TikTok and YouTube widgets.

In SnapWidget

  1. Create your widget, or open an existing widget from your dashboard.
  2. Click Get Widget. For an existing widget, click Update & Get Widget.
  3. In the You’re One Step Away window, click Copy To Clipboard.

In Grav

  1. In the Grav admin, go to Configuration > System. On the Markdown tab, turn off GFM Tag Filter and click Save.
  2. Click Pages and open the page where you want the widget.
  3. On the Content tab, paste your code where you want the widget to show.
  4. Click Save. Grav can show a warning about possible XSS issues in the content. The warning is about the <script> and <iframe> tags in the code, and it does not stop the save.

Check your widget

Open the page on your live site. The widget shows your latest Instagram posts. If you see the code as text, check that GFM Tag Filter is off.