Docs    Instagram    Customizations

Using Custom JavaScript code in our Instagram Feed plugin

To use Custom JavaScript snippets in our Instagram Feed plugin, we recommend using the following approach:

1. Install the Insert Headers and Footers plugin by WPBeginner. You can do this by going to your WordPress “Plugins” page, clicking “Add New”, and searching for the plugin name.

2. Once installed and activated, in your WordPress menu go to Settings > Insert Headers and Footers.

3. Use the following format to add your Custom JavaScript snippet into the “Scripts in Footer” of the Insert Headers and Footers settings page.

<!-- Custom Instagram Feed JS -->
<script type="text/javascript">
window.sbi_custom_js = function(){
  $ = jQuery;
  // Custom JS here
}
</script>

See the screenshot below for an example:

support

Couldn’t find your answer in the docs?

Contact Support