Webflow
Learn how to get started building an Instagram feed with Webflow.
1. Getting Started
Building a social feed with Webflow is straightforward and efficient. Our advanced attribute system powers Webflow feeds, allowing you to seamlessly integrate attributes directly within the platform. This enables the display of live, real-time feed data without the constraints of basic widgets and embeds.
Key Features:
Attribute Integration: Feeds are built by adding attributes directly to structure in Webflow.
Pre-made Layouts: We provide a collection of pre-made layouts to get started faster.
Attributes Table: You can view all available attributes in the attributes table.
Flexability: All attributes are optional (eg. caption, avatar), only the feed wrapper and post wrapper are required.
1.1. Create Feed *
From your FeedSpring dashboard, select the "Connect New Feed" option and follow the steps to create a new feed. For more detailed getting started instructions, view our documentation page.
1.2. Installation *
Add the FeedSpring script to the <head> of your Webflow project.
Webflow Code Settings: If you plan to display the feed on multiple pages, add the following script to the project settings. For a feed displayed on a single page, add the script to the page settings. Learn more about Webflow custom code here.
1.3. Pre-made Components
FeedSpring offers a number of pre-made components that you can copy and paste directly into your projects. This can help you start customizing a feed right away and provides an excellent example of how a feed is built. Browse our pre-made components here
2. Setup
2.1. Feed Wrapper *
The Feed Wrapper specifies where the feed will be rendered on the page and can be added to any element that will enclose the entire feed. We recommend adding a new <div>
block to wrap your feed and applying the attribute directly to this element.
Add the attribute name="feedspring"
andvalue="YOUR-UNIQUE-ID"
to the <div>
block
Your unique feed ID is available on the feed setup page within the app and can be copied directly from there.
2.2. Post Wrapper *
The Post Wrapper contains the main content of a post and is nested inside the Feed Wrapper. This is where you'll add any layout elements related to your posts, such as captions or timestamps. To create the Post Wrapper, add the following attribute to a <div>
block that will enclose your post. You can duplicate this block for as many posts as you wish to display.
Simply add the attribute name="feedspring"
andvalue="post"
3. Building
Once the feed wrapper and the feed post have been created, you can start adding attributes to the required layout created inside them. For example, if you want to display a timestamp, you can add this attribute to a text element inside the post wrapper.
3.1. Available Attributes
The following attributes can be added to your layout to start displaying their respective data.
Post Attribute: Some attributes can only be added to structure inside the post wrapper, these attributes are labeled as 'Post Attribute' below. All other attributes can be placed anywhere inside your feed wrapper.
Field | Attribute Name | Attribute Value | Post Attribute* |
---|---|---|---|
Title | feed-field | title | |
Video | feed-field | video | |
Thumbnail | feed-field | img | |
Video Description | feed-field | description | |
Link | feed-field | link | |
Timestamp | feed-field | timestamp | |
View Count | feed-field | view-count | |
Like Count | feed-field | like-count | |
Share Count | feed-field | share-count | |
Comment Count | feed-field | comment-count | |
Duration | feed-field | duration | |
Avatar | feed-field | avatar | |
Name | feed-field | name | |
Bio | feed-field | bio | |
Profile Link | feed-field | profile-link | |
Following Count | feed-field | following-count | |
Follower Count | feed-field | follower-count | |
Total Likes | feed-field | total-likes | |
Verified | feed-field | verified |
3.2. Build Feed
Building your feed is super simple, add attributes detailed below to your structural content and publish your site to see the feed in action.
3.2.1 Title
To display the title, add the following attribute to a <text> element on your page. Since this attribute is related to a post, it should be placed within an element that has the Post Wrapper.
name="feed-field"
andvalue="title"
3.2.2 Video
To display the video, add the following attribute to a <iframe> element on your page. Since this attribute is related to a post, it should be placed within an element that has the Post Wrapper.
name="feed-field"
andvalue="video"
3.2.3 Thumbnail
To display the thumbnail, add the following attribute to a <img> element on your page. Since this attribute is related to a post, it should be placed within an element that has the Post Wrapper.
name="feed-field"
andvalue="thumbnail"
3.2.4 Video Description
To display the description, add the following attribute to a <text> element on your page. Since this attribute is related to a post, it should be placed within an element that has the Post Wrapper.
name="feed-field" value="description"
3.2.5 Link
To link to the post, add the following attribute to a <link> element on your page. Since this attribute is related to a post, it should be placed within an element that has the Post Wrapper.
name="feed-field" value="link"
3.2.6 Timestamp
To display the timestamp, add the following attribute to a <text> element on your page. Since this attribute is related to a post, it should be placed within an element that has the Post Wrapper.
name="feed-field"
andvalue="timestamp"
Timestamp Format: We also provide options to format the timestamp to suit your own requirements. Please review our timestamp documentation to learn more about this.
3.2.7 View Count
To display the view count, add the following attribute to a <text> element on your page. Since this attribute is related to a post, it should be placed within an element that has the Post Wrapper.
name="feed-field"
andvalue="view-count"
3.2.8 Like Count
To display the like count, add the following attribute to a <text> element on your page. Since this attribute is related to a post, it should be placed within an element that has the Post Wrapper.
name="feed-field"
andvalue="like-count"
3.2.9 Share Count
To display the share count, add the following attribute to a <text> element on your page. Since this attribute is related to a post, it should be placed within an element that has the Post Wrapper.
name="feed-field"
andvalue="share-count"
3.2.10 Comment Count
To display the comment count, add the following attribute to a <text> element on your page. Since this attribute is related to a post, it should be placed within an element that has the Post Wrapper.
name="feed-field"
andvalue="comment-count"
3.2.11 Duration
To display the duration, add the following attribute to a <text> element on your page. Since this attribute is related to a post, it should be placed within an element that has the Post Wrapper.
name="feed-field"
andvalue="duration"
3.2.12 Avatar
To display the avatar, add the following attribute to a <img> element on your page.
name="feed-field"
andvalue="avatar"
3.2.13 Name
To display the name, add the following attribute to a <text> element on your page.
name="feed-field"
andvalue="name"
3.2.14 Bio
To display the biography, add the following attribute to a <text> element on your page.
name="feed-field"
andvalue="bio"
3.2.15 Profile Link
To display the profile link, add the following attribute to a <link> element on your page.
name="feed-field"
andvalue="profile-link"
3.2.16 Following Count
To display the following count, add the following attribute to a <text> element on your page.
name="feed-field"
andvalue="following-count"
3.2.17 Follower Count
To display the follower count, add the following attribute to a <text> element on your page.
name="feed-field"
andvalue="follower-count"
3.2.18 Total Likes
To display the total likes, add the following attribute to a <text> element on your page.
name="feed-field"
andvalue="total-likes"
3.2.19 Verified
To display the verified badge, add the following attribute to a <div> element on your page.
name="feed-field"
andvalue="verified"
4. Additional Settings
FeedSpring provides a range of advanced options to further customize your feeds and enhance their functionality. Explore the following sections to discover how to implement these features into your builds:
4.1 Feed Options
Learn about additional options you can add to your feeds, such as language tags and more.
4.2 Placeholder & Loading
Learn how to create a seamless loading experience for your feeds using placeholders.
4.3 Dynamic Attribute
Learn how to create a dynamic feed, using the layout of a single post.
4.4 Timestamp
Learn how to adjust timestamp format to suit exactly what you want for your feed.
4.5 Coded Solutions
View our collection of coded solutions built to help you solve problems with simple CSS/JS
Last updated