Docs    Instagram    Customizations

Auto-Refresh the Feed Every “x” Seconds

You can create an auto-refreshing feed using an iframe, a special shortcode, and a JavaScript snippet. First, add a shortcode to a page that your visitors won’t be visiting that just has the feed as the content. Creating a blank template page works best:

[instagram-feed type=user id=13460080 class="sbIframe"]

Then add this to the “Custom Javascript” area on the “Customize” tab:

if ($('.sbIframe').length) {
    setInterval(function() {
         window.location.reload();
    }, 60 * 1000);
}

The highlighted 60 represents the number of seconds until reload.

Then use this html where you would like to place the feed that reloads:

<iframe src="http://yourwebsite.com/instagram-feed/"></iframe>

The highlighted part represents the url of where you put your feed. You will need to adjust where the iframe focuses, how large the element is, etc, for your situation.

Technical Support

Still have questions? We are here to help you succeed.

Open a support ticket