Docs    Instagram    Documentation

Make a Shoppable Feed

How to build a shoppable Instagram feed, where each image links to a page on your own site instead of back to Instagram.

Would you like to make a shoppable feed, where the posts in your feed link to pages on your own site instead of back to Instagram?

In this guide, we’ll show you how to turn on the Shoppable Feed setting and add a link to each post in the feed customizer. We’ll also cover how to link posts to custom URLs when you don’t have the Shoppable Feed setting.

Before you get started, make sure Instagram Feed is installed and activated on your site.

Requirements: Shoppable Feed is part of Instagram Feed Pro and needs an Elite license. The free plugin shows the Shoppable Feed section with a Learn More button instead of the setting. To compare what each license includes, see our guide on the differences between the free plugin and Instagram Feed Pro.

Making a Shoppable Feed

To get started, we’ll turn on Shoppable Feed and add a link to each post you want to point to a page on your site.

Each link is stored with your feed, one per post. You add it in the feed customizer, and it takes priority over any web address in the post’s caption.

  1. To start, go to Instagram Feed » All Feeds in your WordPress admin sidebar. Then click the pencil icon next to the feed you want to change.
  2. Next, click the Settings tab in the customizer. Then click Shoppable Feed.
  3. After that, turn on the Enable switch. Each post in the Shoppable Feed Preview gets an Add button.
  4. In the preview, click the Add button on the post you want to link. A Selected Post panel opens with the post’s image and the start of its caption.
  5. In the Product Link field, enter the full URL of the page you want the post to link to. The URL needs to start with http:// or https://, or the post won’t link to it.
  6. Then click the Add button under the field. The post’s button in the preview changes to Update.
  7. Repeat steps four to six for each post you want to link.
  8. When you’re done, click Save.
  9. To show the feed on a page, click Embed and use the shortcode it gives you.

The Add and Update buttons only show while the Shoppable Feed section is open. A link isn’t kept with your feed until you save it.

When Shoppable Feed is on, clicking a post takes visitors to a link instead of opening the popup lightbox that shows your posts on your site. A post with a link goes to that URL. A post without one links to the web address in its caption, or to the post on Instagram if the caption has none.

If you’d like to encourage traffic from your feed on instagram.com back to your website, you can add a link to the page with your Shoppable feed in your profile.

By default, the posts in your feed link to the posts on Instagram, or open the popup lightbox in Instagram Feed Pro. Shoppable Feed is the built-in way to link each post to its own URL. Without it, you can use a short JavaScript snippet instead.

The steps below are for the free plugin, where posts link straight to Instagram. Add the JavaScript in a snippet with WPCode.

First, we’ll find the ID of each post, then point each one to its own URL.

  1. To start, open the page with your feed. Right-click the post you want to link and choose Inspect. The exact name varies a little by browser. If you haven’t used this tool before, see Basics of Inspect Element for WordPress.
  2. Next, find the id on the post’s sbi_item element. It starts with sbi_, followed by the post’s ID. Copy it, and repeat for each post you want to link.
  3. After that, add the JavaScript below in a WPCode snippet, with one line for each post. In each line, replace the placeholder after the #, such as sbi_POST_ID_1, with an id you copied. Then replace its URL with the page you want that post to link to.
  4. When you’re done, save the snippet and refresh your page to check the links.

This snippet links two posts to their own URLs. In your snippet, use jQuery, not $, because WordPress loads jQuery in no-conflict mode.

jQuery(document).ready(function () {
    jQuery('#sbi_POST_ID_1').find('.sbi_photo').attr('href', 'https://yourlink1.com');
    jQuery('#sbi_POST_ID_2').find('.sbi_photo').attr('href', 'https://yourlink2.com');
});

To send every post in a feed to the same URL, we’ll add a class to the feed’s shortcode, then target that class in a snippet.

  1. To start, add a class to the feed’s shortcode, so the link only applies to posts in that feed. Then use your own feed number in place of 1.
  2. Next, add the JavaScript below in a WPCode snippet. Replace the URL with the page you want every post to link to.
  3. When you’re done, save the snippet and refresh your page to check the links.

Here is the shortcode with the class added.

[instagram-feed feed=1 class="custom-link-feed"]

Here is the snippet that links every post in that feed to one URL.

jQuery(document).ready(function () {
    jQuery('.custom-link-feed .sbi_photo').attr('href', 'https://yourlink.com');
});

That’s it! Your feed now sends visitors to your own pages. Next, to bring visitors from Instagram to that page, see Linking Your Instagram Profile to Your Shoppable Feed.

Frequently Asked Questions

Below, we’ve answered some of the most common questions about shoppable feeds.

Which license do I need for a shoppable feed?

An Elite license for Instagram Feed Pro. With a lower license, the Enable switch opens an upgrade popup, and the free plugin shows a Learn More button in its place.

support

Couldn’t find your answer in the docs?

Contact Support