Written by 6:51 am How To Views: 22

The Ultimate Guide to Embedding Content on Your Website

Master the art of embedding social media content on your website with this comprehensive guide. Boost engagement, trust, and sales by integrating user-generated content seamlessly. From Twitter tweets to TikTok videos, become a pro at elevating your online presence.

Embedding Tweets

1. Find the tweet you’d like to embed.

The first step to embedding a Tweet is finding the one you want to display in its natural habitat — Twitter. You can only get embed codes from its website.

2. Click the three dots at the top-right of the tweet.

3. Click Embed Tweet.

Clicking this arrow icon will reveal a dropdown menu of options, including one called “Embed Tweet.” Click this option.

4. Click Copy Code or make customizations.

You can customize the theme (light or dark), set a language, and hide Tweet replies. If you make customizations, click Update, then Copy Code.

5. Paste the code into your website’s HTML editor.

Paste the code into your HTML editor by opening the source code (some content management systems have a “” icon where you can access this source code) and pasting it where you want it to appear.

6. Optional: Add ‘tw-align-center’ after the words “twitter-tweet” in the embed code.

Once you pasted this code into your HTML, however, you’ll want to center-align this tweet so it doesn’t automatically appear pushed up against the left or right side of your webpage. To correct this, add the text, ‘tw-align-center’ (without quotation marks) directly after “twitter-tweet” in the embed code. You can learn more about this method here.

That’s it! This is what your embedded tweet will look like when you’re done:

Embed Facebook Posts or Video

You can embed a Facebook post or video from the content or use the Developer Embed Tool.

1. Find the Facebook post you’d like to embed.

Navigate to the post you want to embed from a Facebook user’s profile page or your newsfeed.

2. Click the three dots on the top-right of the post.

3. Click Embed in the dropdown menu.

4. Copy and paste the code into your website’s HTML editor.

5. Optional: Add center and /or center tags around the entire HTML snippet to center-align your post.

Once you paste it into your HTML, you can center-align the code so it doesn’t appear pushed up against your webpage’s left or right side. To correct this, wrap the code with ‘center’ and ‘/center’ tags so the Facebook post displays in the center of your article or webpage.

That’s it! Here’s what it’ll look like when you’re done:

Embed Facebook Post with Developer Embed Tool

You can also embed a Facebook Post using Facebook’s Code Generator. To do this:

  • Identify the content you want to embed and copy the page URL.
  • Navigate to Facebook’s Developer Embed Tool by clicking this link.
  • Paste the URL in the URL of the post field.
  • Set your desired width.
  • Choose whether you want to feature the full post (comments included) or the post itself.
  • Click Get Code and paste the code within your site’s HTML.

Embed Facebook Feed

You can embed an entire Facebook feed using a plugin (for WordPress users) or Facebook’s Page Plugin.

Using a WordPress Plugin

WordPress users have several Facebook feed plugins at their disposal. Here’s how to use one:

  • The Custom Facebook Feed, by Smash Balloon, is one such WordPress plugin you can download through your WordPress account. You can download this plugin here.
  • With this plugin downloaded, log into your WordPress account and activate this plugin from within the Plugins menu.
  • Use the Facebook Feed settings of your CMS to select and configure the specific Facebook feed you want to display on your website.
  • Enter the text, ‘[custom-facebook-feed]’ into your website’s HTML editor to generate your chosen Facebook feed.

Using Facebook’s Page Plugin

Facebook has its very own Page Plugin tool you can use to produce an embed code for any Facebook feed. Here’s how to use it:

1. Copy the URL of the page you want to embed.

2. Open Facebook’s Page Plugin tool and paste the URL into the Facebook Page URL field.

3. Add the tabs you want displayed alongside your embedded feed.

The plugin lets you display tabs for Events and/or to a messenger account. To add them to your embedded Facebook feed, enter the words “events” and/or “messages” next to the word “timeline,” all separated by commas into the Tabs field.

4. Customize the dimensions of your Facebook feed.

The default size for a Facebook feed embed is 340×500, but you can choose your width (min 180 max 500) and height (min 70).

5. Customize elements of your feed embed.

Facebook automatically checks boxes that adapt the plugin to the container width, but you can un-check them for further customization. You can also choose to use a smaller-sized header or hide your overall cover photo.

6. Click Get Code.

7. Click the ‘IFrame’ tab.

The popup window that opens has a tab for JavaScript SDK and IFrame. The first tab is only useful if you’re coding a website from scratch, and IFrame is ready to be embedded into your website’s HTML. Beginners should stick with the iframe code.

8. Copy and paste the embed code into your website’s HTML editor.

9. Optional: Add center and /or center tags around the entire IFrame snippet to center-align the feed.

Once you paste the code into your HTML, you can center-align the code so it doesn’t appear pushed up against the left or right side of your webpage. To do this, wrap the code with ‘center’ and ‘/center’ tags so the Facebook feed displays in the center of your article or webpage. 

Embed Instagram Feed and Posts

Here’s how to embed an Instagram feed.

The Instagram Feed WordPress Plugin

Smash Balloon’s Social Photo Feed WordPress plugin makes it easy to embed entire Instagram feeds on your WordPress site.

  • Download the Social Photo Feed plugin for WordPress here.
  • With this plugin downloaded, log into your WordPress account and activate this plugin from within the Plugins menu.
  • Use your CMS’s “Instagram Feed” settings to select your Instagram Access Token and user ID.
  • Enter the text, ‘[instagram-feed]’ in the HTML editor of your website to generate your chosen Instagram feed.

According to the instructions, you can display multiple Instagram feeds at the same time with two codes:

  • [instagram-feed user=”username” cols=3], where you’d be displaying three columns of content from an accounts feed.
  • [instagram-feed user=”username1, username2″], where you can feature photos from multiple accounts in a single feed.

Instagram’s Embedding Feature

Instagram’s native tool helps you easily embed individual posts. Here’s how to do it:

Note: You can only embed Instagram content from public accounts with embed settings turned on. To set your own account to public, navigate to your profile, tap Settings and privacy, Account privacy, then toggle Private account to off.

1. Click on the post you want to embed.

You can only get embed codes from Instagram.com on mobile or desktop browsers.

2. Click the three dots in the top right corner of the post.

3. Select Embed.

4. Copy and paste the embed code into your website’s HTML editor.

5. Optional: Add center and /or center tags around the entire HTML snippet to center-align the post.

Once you pasted this code into your HTML, you have the option to center-align the post so it doesn’t appear pushed up against the left or right side of your webpage. To correct this, wrap the code with ‘center’ and ‘/center’ tags so it’s centered on your article or webpage.

That’s it! Here’s what your embedded Instagram post will look like:

example of embedded instagram post

Embed Pinterest Pins

1. Open Pinterest’s widget builder.

2. Select Pin in the menu bar.

3. Paste in the URL of the pin you’d like to embed into the Pin URL field.

4. Customize the embed.

You can customize the size of the widgets’ icons and choose if you’d like to hide the description. Use the live preview as a helpful reference before making a final decision.

5. Copy and paste the code from this section into your website’s HTML editor.

Once you’re happy with the customizations, copy the line of code from the first code field (shown below) and paste it into your website’s HTML editor or source code exactly where you want it to appear on the page. If you want it to appear in multiple places, simply paste it wherever you want it to go.

pinterest-pin-embed-codeThen, copy the second line of text and paste it into your website’s HTML editor at the very bottom of the page. Only include this second line of code once per page, even if you want the widget to appear in multiple places on your page.

Embed Pinterest Boards

You can embed a Pinterest Board using the same widget builder. Here’s how:

  • Open Pinterest’s widget builder.
  • Select Board Widget in the menu bar.
  • Paste the board URL, customize the sizing, and make sure you’re satisfied using the live preview.
  • Copy and paste the first line of code into your HTML exactly where you want it to appear on your side.
  • Copy and paste the second line of code into your HTML editor at the bottom of the page. Only add this line of code once per page.

Copy and paste the bottom two lines of code into your website’s HTML editor, and that’s it! Here’s what an embedded board looks like:

example of an embedded pinterest board

How to Embed Google Calendar

You can only embed a Google Calendar to your blog or website via desktop. Got it open? Let’s embed it.

1. Click the gear icon at the top of your calendar to open settings.

2. Select the calendar you want to embed and scroll down to Integrate calendar.

(You can also simply click the option of the same name on the left-hand side under your chosen calendar.)

3. Copy the iframe embed code or make further customizations.

If you’re happy with the calendar as is, copy the iframe embed code and paste it into your website’s HTML where you want it to appear.

If you want to make customizations, click Customize and edit your calendar. You can add a title, change the size, add a color, and other visual elements. Once you’re done, scroll to the top of that same page, copy the embed code, and paste it into your HTML.

4. Optional: Center your calendar.

If you’d like, you can wrap the embed code in center and /center tags to center-align your calendar within the margins of your website.

The image below is an example of a Google Calendar embedded in a blog post.

example of google calendar embedded into a blog post

How to Embed a YouTube Video

Find the YouTube video you’d like to embed. Under the video, choose Share. In the menu that appears, choose Embed. Copy the code that appears and paste it into your website’s HTML editor.

1. Find the YouTube video you’d like to embed.

2. Under the video, click Share.

3. Choose Embed from the menu options.

3. Copy the code and paste it into your website’s HTML editor.

You can set a timestamp for the video to start before copying the code. Once you have your settings exactly the way you want them, Copy the code from the popup box and paste it into your website’s HTML.

4. Optional: Add center and /or center tags around the entire HTML snippet to center-align your video.

Here’s what the final code should look like with alignment tags:

center iframecenteriframe width=”560″ height=”315″ src=”https://www.youtube.com/embed/mZxa3lrLhXM” frameborder=”0″ allow=”accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture” allowfullscreen/iframe/center

The image below is an example of a YouTube video embedded into a blog post.

example of a youtube video embedded into a blog post

How to Embed a TikTok Video

It’s easy to embed TikTok videos into your blog or website, and there are three ways to do it.

Note: You can only get embed codes from TikTok.com (no mobile app), and you can’t embed content from private accounts or accounts of underage users.

How To Embed a TikTok Video From a User Profile

Here are the steps to embed a TikTok video from someone’s profile.

1. Navigate to a user’s profile and find the video you want to embed.

2. Click on the video.

3. Click the Embed icon above the comments section.

4. Click copy code in the pop-up window and paste it into your website HTML.

The image below is an example of a TikTok embedded into a blog post.

example of a tiktok video embedded into a blog post

Embed a TikTok Video From Your for You Page

1. Click the share arrow at the bottom of the right-hand side menu of the video.

2. Tap Embed from the top of the menu list.

3. Click Copy code in the pop-up window and paste it into your website HTML.

How to Embed a TikTok Video from TikTok Embeds

TikTok Embeds makes it easy to embed a single TikTok video (Basic Embeds) or create a playlist of videos to embed (Create your own). For Basic Embeds;

1. Click Video and paste the URL of the TikTok video into the URL field.

2. Click Get code.

3. Copy and paste the code into your website URL.

To embed a playlist of videos;

1. Click Create your own.

2. Click the plus arrow in the middle of the box field.

3. Paste URLs to all of the videos you want to include separated by comma, line break, or space, and click Add.

4. Click Preview to get a live look at the embed.

5. Click Copy code and paste the embed URL into your website’s HTML.

The image below is an example of what an embedded TikTok playlist looks like:

Screenshot 2023-06-23 at 1.15.46 PMOver to You

Some of these embed codes may need a little tweaking to look perfect on your blog or website, but by using these steps, you should be off to a great start. Happy embedding!

Visited 22 times, 1 visit(s) today

Share This

Last modified: January 5, 2024

Close
2023 Winners of The Game Awards
Verified by MonsterInsights