Add your Instagram feed to Google Sites

Paste your widget code into an embed box on the new Google Sites. Wrap it in a div first, so visitors can click your photos.

How to add an Instagram feed to Google Sites

  1. 1

    Create your widget and copy the code

    Create your widget in SnapWidget and click Get Widget. Copy all the lines of the code.

  2. 2

    Wrap the code in a div

    Put <div> on the line before the code and </div> on the line after it. Without the div, Google Sites shows your photos but visitors cannot click them.

    SnapWidget embed code wrapped in an opening and closing div tag
  3. 3

    Open the page and choose Embed

    Open your site in Google Sites and select the page. On the INSERT tab, select Embed.

    The Google Sites Pages panel with the Grid Display page selected
  4. 4

    Paste the code and insert it

    In Embed from the web, choose Embed code, paste the code and click Next. Check the preview, then click Insert.

    The Google Sites Embed from the web box with SnapWidget code on the Embed code tab
  5. 5

    Stretch the embed box

    Drag the side handles to full width and the bottom handle down until every row shows with no scrollbar. Google Sites shows the code in its own frame, so a lightbox can only be as big as this box.

    An Instagram grid in a Google Sites embed box stretched to full width
  6. 6

    Publish

    Click PUBLISH. Publish again after every change to the code, and repeat these steps on each page that needs the feed.

    A published Google Sites page with an Instagram grid under the heading

What Google Sites needs from the code

Google Sites shows custom HTML inside a frame of its own. Our install guide covers each detail.

A div around the code
Put <div> before the code and </div> after it. Without the div, visitors cannot click your photos.
A box that fits the widget
Stretch the embed box to full width and drag the bottom down until every row shows. A lightbox can only fill this box.
Works with every theme
The steps are the same in every Google Sites theme. Only the colors and background around the widget change.
Publish after each code change
Click Publish after you edit the code. New Instagram posts reach the widget without a publish.

Want every click? Our help center has the step-by-step install guide with screenshots.

Read the install guide

Loved by 200,000+ websites

Don't just take our word for it. See all reviews →

Frequently asked questions

Use Embed on the Insert tab. Copy your SnapWidget code and wrap it in <div> and </div>. In Google Sites, open the page, select Insert, then Embed, choose Embed code and paste the code. Click Next, then Insert, and publish.

The code is not inside a div. Our help center says Google Sites needs the whole code wrapped in <div> and </div>, or the photos are not clickable. Add the div and publish again.

The embed box is shorter than the widget. Open the page in edit mode, click the widget and drag the bottom handle down until all photos show. Remove the scrollbar on a slideshow too, or it does not display properly on your live site.

Google Sites shows custom HTML in its own frame, and the lightbox can only fill that frame. Make the embed box wider and taller until the lightbox fits. The lightbox comes with paid plans, and free widgets link photos to Instagram.

Our guide covers the new Google Sites only. On the new Google Sites, the steps do not depend on the theme you use.

Yes. Google Sites needs the code on each page where the feed should show. The steps are the same on every page and sub-page.

Put your Instagram feed on Google Sites