Learn more about the update 2.0.0 installation in an article How to install InstaLink jQuery 2.0.0 of our blog.
Upload the instalink folder to your server.
Add files to your website (usually in <head> section) after jQuery (requires jQuery 1.7+).
If you uploaded the instalink folder to the root directory of your website, the code will look like:
<link href="/instalink/instalink-2.1.10.min.css" rel="stylesheet">
<script src="/instalink/instalink-2.1.10.min.js"></script>
If you uploaded the folder to another directory, don't forget to set a correct path to the files.
If your website doesn't include jQuery script, please, add it before InstaLink:
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.12.3/jquery.min.js"></script>
Add InstaLink HTML element to the desired page.
<div data-il
data-il-api="/instalink/api/"
data-il-username="elfsight"
data-il-hashtag=""
data-il-lang="en"
data-il-show-heading="true"
data-il-scroll="true"
data-il-width="270px"
data-il-height="350px"
data-il-image-size="medium"
data-il-bg-color="#285989"
data-il-content-bg-color="#F8F8F8"
data-il-font-color="#FFFFFF"
data-il-ban="">
</div>
If you uploaded the instalink folder to a non-root directory of your website,
you need to set a correct path to the /instalink/api/ folder in the data-il-api attribute.
Note: This case requires PHP 5.2+ version.
Note: Be sure that the /instalink/api/ directory on your server is writable.
You can manage some settings of the plugin's API in the config.json file. You can find it in the /instalink/api/ folder.
There are 4 available options:
If your hosting doesn't support PHP, you need to use Instagram Access Token and the data-il-access-token attribute instead of data-il-api attribute. Note: In this case you can display only the latest 20 images from the username, which was added to Sandbox of Instagram API Console for this Client ID. Please, follow these steps:
data-il-username attribute empty.data-il-access-token attribute.Info: dependence on PHP and Instagram access token restrictions are related to Instagram API changes.
You can read more about these changes in an article Global update of Elfsight Instagram Plugins 2016.
It will help you to configure your InstaLink faster and easier.
Configure my InstaLinkCongratulations! You have successfully installed your InstaLink.
Incoming issues and queries are taken care of in 24-36 hours according the receiving order.
Visit Support Center