Instagram Widget

Embed posts—photos, videos, and reels—from Instagram on your news website. Quick and easy setup—paste the post link, save changes, and you're done!

The Instagram Widget in CMS 4media allows you to embed posts published on the Instagram social media platform. The widget can be used multiple times within a single template.

The embedded content appears with an "Expand" button, just like in the case of the Facebook widget.

 

Instagram Widget
Instagram Widget

 

 Clicking the "Expand" button reveals the full content to users.

 

Instagram Widget - Expanded post view
Instagram Widget - Expanded post view

 

In the widget, you can embed:

  • Single-image posts
  • Multi-image posts (carousel)
  • A specific image from a carousel post
  • Video posts
  • Reels

 

Adding the Widget

You can use the Instagram Widget multiple times within one page template.

Add the widget in the Page Builder (Website Visualization) module. To do this, choose the template where you want to make changes and click "Edit." The template editing view will open. Click the "+Add item" button to display the widget library and add the Instagram Widget.

For more information on adding widgets and step-by-step instructions, refer to the guide: Adding Widgets.

 

Header Settings

By default, the widget has header settings turned off. If you want a bar with header text to appear above the widget content, click the "Show header" switch. The header content will expand, allowing you to decide on the text, link, and icon.

 

Instagram Widget Header Settings
Instagram Widget Header Settings

 

  • Header Text: Short content displayed above the widget content on a visually highlighted bar.
  • Header Link: Allows you to link the header text. You can paste a link to your Instagram profile page here.
  • Header Icon: Appears before the header text and acts as a link if the Header Link is active. You can change the icon by selecting another one through the "Select icon" option.

 

Content Settings

In this section of the widget settings, you can decide which post to display. Simply paste the link to the post copied from the browser window into the "Instagram.com profile URL" field.

 

Instagram Widget Content Settings
Instagram Widget Content Settings

 

After pasting the link, the post that will be displayed in the widget should appear in the "Preview" section. You can also click the "Generate preview" button if the changes are not automatically fetched.

Show Author's Signature: If the switch is active, the post's content will also include the author's signature below the Instagram photo/video.

 

Comparison of post appearance with "Show Author's Signature" option enabled (left) and disabled (right)
Comparison of post appearance with "Show Author's Signature" option enabled (left) and disabled (right)

 

Where to Find the Instagram Post Link?

Click on the publication date of the Instagram post. After the page reloads, you will find the post's URL in the browser's address bar.

 

Every Instagram post has its unique link. You can find it by clicking on the publication date of the post.
Every Instagram post has its unique link. You can find it by clicking on the publication date of the post.

 

ProTip: If you want to display a specific photo from a carousel post in the widget, scroll to the photo you want to display and copy the URL from the browser window. The URL for a specific photo will look like this: https://www.instagram.com/p/C0CZ4cALqzs/?img_index=2.

 

Each photo in a carousel post has its unique URL. The ending address like index=2 means it's the second photo in the carousel.
Each photo in a carousel post has its unique URL. The ending address like index=2 means it's the second photo in the carousel.

 

Note! The widget allows embedding only posts published on Instagram. You can try embedding your Instagram profile's main page, but the widget will only display information instructing the user to log in to the social media portal to view the content.

 

Here's how the widget will look if you try to embed the link to your Instagram profile's main page.
Here's how the widget will look if you try to embed the link to your Instagram profile's main page.

 

Instead, you can link the header text using the Header Link option or use the ready-made embedding code and publish it in the HTML widget (guide below).

 

Where to Find the Embed Code for an Instagram Post?

Paste the embedding code into the "Custom HTML Code" window in the Custom HTML Code widget if you want to embed main Instagram profile on yuor news website.

1) Click the three dots icon in the upper right corner of the post. A menu will appear, from which select "Embed code."

 

Embedding code for an Instagram post
Embedding code for an Instagram post

 

2) A window with the option to copy the ready-made HTML code will appear. If you want the post's description to also appear below the Instagram photo/video, leave the "Include caption" checkbox checked.

 

Window with ready-made HTML code for embedding a post on a website
Window with ready-made HTML code for embedding a post on a website

 

3) You can paste the copied HTML code directly into the Custom HTML Code window and save the changes.

 

Related:

More about the author/authors:
Share
Rate