Close Menu

    Subscribe to Updates

    Get the latest creative news from FooBar about art, design and business.

    What's Hot

    A Better Way To Protect Retirement Savings From Inflation

    June 10, 2026

    Rachel Maddow Dunks On Donald Trump And His NBA Finals Boos

    June 10, 2026

    New Study Suggests GLP-1 Use Lowers Breast Cancer Risk

    June 10, 2026
    Facebook X (Twitter) Instagram
    Trending
    • A Better Way To Protect Retirement Savings From Inflation
    • Rachel Maddow Dunks On Donald Trump And His NBA Finals Boos
    • New Study Suggests GLP-1 Use Lowers Breast Cancer Risk
    • AI email marketing tools: Our top picks for 2026
    • GM joins race to build batteries for AI data centers and the grid
    • Disney World Confirms Grand Floridian Cafe Closing Date & Citricos Brunch Change
    • Critics Are Roasting, Not Toasting, Barron Trump’s Energy Drink Launch
    • AAVE Price Prediction: $138 Target in Sharp Focus as Oversold Bounce Meets DeFi Recovery
    Facebook X (Twitter)
    SBM Global News
    Demo
    • Home
    • Top Stories
      • Politics
    • Business
      • Small Business
      • Marketing
    • Finance
      • Investment
    • Technology

      GM joins race to build batteries for AI data centers and the grid

      June 10, 2026
      Read More

      OptiProERP – Company Profile – AllBusiness.com

      June 9, 2026
      Read More

      Notion restores access to Anthropic after service disruption

      June 8, 2026
      Read More

      MailsDaddy – Company Profile – AllBusiness.com

      June 8, 2026
      Read More

      OpenAI unveils Lockdown Mode to protect sensitive data from prompt injection attacks

      June 7, 2026
      Read More
    • Lifestyle
      • Travel
    • Feel Good
    • Get In Touch
    SBM Global News
    Demo
    Home»Marketing»How to add HTML embed codes to your website [quick tip]
    Marketing

    How to add HTML embed codes to your website [quick tip]

    By Staff WriterAugust 4, 202513 Mins Read
    Facebook Twitter LinkedIn Reddit Email
    #image_title
    Share
    Facebook Twitter LinkedIn Pinterest Email

    As a digital marketing consultant, I spend a lot of time promoting website content on social media. But what about promoting your social presence via your website? Embedding enables you to do exactly that. I’ll often use this tactic for video content as a way to repurpose it and increase its reach.

    Download Now: 25 HTML & CSS Hacks [Free Guide]

    So what’s the process for embedding external content on your site? It differs slightly between platforms depending on where you’re pulling the content from, but the basic steps are mostly the same.

    Let’s take a look at how to add HTML embed codes to your site and the specific steps for different platforms.

    Table of Contents

    What does embed mean?

    The term “embed” means to place externally hosted content onto your website or web page. You do this by placing a block of code – called an embed code – into a HTML block on your website. Once you save the page and view the live version, the media you embedded then renders on the published page.

    Embedded content is referenced with HTML, one of the most basic languages used on the web to design and lay out web pages.

    You often see this code when you’re in the “back end” of a blog post, for example. That’s where you’ll add your embed code. Most website editors, from WordPress themes to drag-and-drop builders, will have HTML blocks available that you can place on a blog post or website page to paste the HTML code.

    What is an embed code?

    An embed code is a block of HTML code that is placed in another page and renders a visual element — a video, social media post, form, or page — from another website or source. You can embed YouTube videos, X posts, GIFs, and other multimedia objects on another website.

    Demo

    I frequently use embed codes to embed posts from X or LinkedIn as a quick and easy way to add thought leadership dimensions to blog content, for example.

    Most social and multimedia websites have an option to generate an embed code right from each individual post. Here’s an example of an embed code for a HubSpot YouTube video:

    <iframe width=“560” height=“315” src=“https://www.youtube.com/embed/eGUEAvNpz48” title=“YouTube video player” frameborder=“0” allow=“accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture” allowfullscreen></iframe>

    And here’s the embedded result.

    Want to do the same thing on your blog posts and pages? Next, I’ll go over how to generate an embed code from the most popular social sites. I’ve found that, once you know how to do this on one platform, the steps are very easy to replicate anywhere embedding is available with small variations.

    How to Add HTML Embed Code to Your Site

    1. Go to the social post, video, or webpage you’d like to embed.
    2. Generate the embed code using the post’s options.
    3. If applicable, customize the embed post, such as the height and width of the element.
    4. Highlight the embed code, then copy it to your clipboard.
    5. In your content management system, open up your HTML viewer.
    6. Paste the HTML snippet you just copied into your HTML viewer window. Then click ‘OK’ or ‘Save.’
    7. Finished! You have now embedded content onto your website or blog.

    Let’s dive into each step in more detail.

    how to add html embed code to your site

    Step 1: Generate the embed code.

    Before I embed external content, I first have to generate an embed code for the post or page I want to embed on a website.

    Pro tip: A lot of website builders and CMS’s allow you to simply paste the link to the post and automatically embed it without having to go get the embed code. But this varies from one platform to another.

    Here’s how I generate the embed code on most of the major social and content networks.

    How to Embed a Facebook Post

    Here’s how I embed a Facebook post:

    • First, I open Facebook on a desktop browser.
    • I find the post that I want to embed.
    • After clicking the three dots in the top right corner of the post, a drop-down menu appears.
    • From the dropdown menu, I click Embed.

    getting html embed codes for facebook posts

    • A pop-up appears, and I have the option to include the full post and access advanced settings. The advanced settings are mainly for people with more advanced know-how who want to adjust the width of the post. For beginners, I recommend leaving that alone and simply clicking Copy Code .

    how to embed a facebook post using html embed code

    • Now, I’ve got the embed code copied to my clipboard and ready to be pasted in the back end of a website.

    How to Embed an Instagram Post

    If I want to embed an Instagram post, it’s a pretty similar process. Just remember that embedding Instagram posts is only possible from the desktop version. Here’s how I do it:

    • First, I find the post I want to embed and click to open it up fully in the browser.
    • Then I click the three dots in the top right corner of the post and out comes a pop-out dropdown menu.

    how to get the html embed code from an instagram post

    • I select the Embed option from the list.
    • The embed code comes up with a button to copy it to my clipboard.
    • Sometimes, I want to include the caption. But a lot of times, I’ll uncheck the box Include caption, especially for embedding videos.

    embedding an instagram post on a website

    • Once I’ve hit the Copy embed code button, I’m ready to head back to the website to embed the post.

    How to Embed a YouTube Video

    If I’ve spent a lot of time putting together video content for a YouTube channel, I want to make sure it gets seen as much as possible. So, embedding YouTube videos is one of the most frequent ways I use the embed functionality. It makes my video content accessible to website users to expand its reach.

    The other reason it’s good to embed videos? It saves a ton of bandwidth for a website. Videos tend to be very large files. Uploading them directly to a website can drastically slow down page load times. So, if you want videos on your website, I recommend using a platform like YouTube or Vimeo to do so.

    Back to how I embed YouTube videos:

    • I click into the video I want to embed, and select Share from the row of options underneath the video player.

    how to embed a youtube video using html embed code

    • Embed is the first option on the list after clicking the Share button.

    html embed codes for youtube videos

    • After clicking Embed, the video pops back up with the embed code to the right-hand side.
    • I simply click Copy in the bottom right corner.

    youtube video html embed code

    • I now have the embed code in my clipboard and ready to paste in the website editor.

    How to Embed an X Post

    There’s a lot of useful thought leadership on X, and I like to embed tweets throughout editorial or blog content to boost authority and social proof. It’s also a good way to quote experts without needing to contact them directly or get something custom for your post.

    Here’s how I can embed X posts:

    • First, I open the post I want to embed.
    • Up in the browser bar, I copy the link to the post (more on this in a moment).
    • Like other platforms, I click the three dots at the top right corner of the post.
    • This opens up a list of options, including Embed post.

    how to embed an x post using html embed code

    • Here’s where the process on X gets a little more complex than it probably needs to be. When I click embed, the website opens up https://publish.twitter.com/ in a new tab with the question “What would you like to embed?”

    how to get html embed code from an x post

    • This is where I paste the link to the X post that I copied earlier from my browser bar.
    • I hit enter, and two options appear under “Here are your display options.”

    embedding a video from x with two options for html embedding code

    • I click Embedded Post from the two options, but you can click Embedded Video for video content.
    • A pop-up appears underneath with the embed code and an option to Copy Code, so I click that option.

    x social media post html embed code

    • Like Facebook, X also provides the opportunity to “set customization options.”
    • Once I’ve clicked Copy Code I can return to my website editor and embed the post.

    How to Embed a Pinterest Post

    I particularly like Pinterest posts for fashion, DIY, decor, cookery and recipe sites, and hobby sites. If your website is within a niche that lends itself well to Pinterest’s format and audience, embedding your Pinterest posts is a great way to grow your following on the social platform.

    Here’s the process I follow for embedding a Pinterest post:

    • I open up the Pin I want to embed on the site.
    • I click the three dots on the top left, right at the end of the list of options.
    • Next I click Get Pin embed code.

    how to embed a pinterest post with html embed code

    • One of the things I like about Pinterest embed codes are the size options. It means you get the right sizing and resolution. If I’m embedding the pin in a small area like sidebar content, I might choose small. But if I want a full-width image for a blog post, I would choose large.

    pinterest post embed code with size options

    • Once I customize the size, I highlight the code and click Command + C or CTRL + C, depending on the device I’m using.
    • Now my Pin is ready to get embedded.

    How to Embed a SlideShare Presentation

    SlideShare presentations are a little dated these days – it’s a long while since I’ve embedded one on a website. But, you never know. So it’s useful to know how, just in case.

    Here’s I grab the embed code for a SlideShare presentation.

    • I open the SlideShare presentation I want to embed.
    • Under the presentation, I click the three dots and then select the Share option.

    slideshare html embed code

    • This prompts a Share this SlideShare box to appear over the presentation slides.
    • I go to the Embed section underneath the social share buttons.

    how to embed a slideshare presentation using html embed code

    • At first, the field looks blank. But when I click into it, I can see the embed code.
    • The good thing about SlideShare is that I can select the size of the presentation on the left, and choose which slide the embed starts on to the right.
    • Once I’m happy with those settings, I highlight the embed code and click Command + C or CTRL + C, depending on my device.
    • Now, I can go back to my website editor and embed the presentation directly on a website page or blog post.

    How to Embed an External Webpage

    On a rare occasion, I might need to embed an external webpage. Like all embed codes, this is done using an iframe HTML tag.

    Here’s an example of what iframe HTML code looks like:

    <iframe src=“url” title=“description” ></iframe>

    I can use these same tags to embed an external webpage. Here’s how I do it:

    • I take this entire line of code and paste it somewhere like a Notepad app: <iframe src=“url” title=“description” width=”” height=””></iframe>
    • Then I go to the webpage I want to embed and I grab the URL from the browser bar.
    • Note: I’ll need the entire URL, including the “https” piece.
    • In the space in my iframe code where it says “url,” I paste the full webpage URL over that text so it looks like this: <iframe src=“https://example.com/embedded-page” title=“Embedded Page Title” width=”” height=””></iframe>
    • I can also adjust the pixel height and width of the frame using the “width=” and “height=” sections, which would look like this: <iframe src=“https://example.com/embedded-page” title=“Website Page Title” width=”750” height=”500”></iframe>
    • Finally, I copy the entire line of code to embed it on the website.

    Step 2: Access your content management system and paste the embed code in your HTML viewer.

    I work with a lot of different CMSs and they all work slightly differently. But the process of using the HTML block is fairly similar across the board. Here, I’ll go over how you can do it in Content Hub and WordPress.

    Inserting Embed Code onto a Content Hub Site

    In Content Hub, although I could use the HTML editor if I wanted to, I actually don’t need to in order to add embed content. Here’s how it works:

    • I open up my HubSpot dashboard and go to Content > Blog. If I was embedding content on a website or landing page, I would go to Content > Website Pages or Content > Landing Pages, respectively.

    how to embed content on hubspot pages

    • Next, I find the blog post or webpage where I want to embed the content, hover over it in the list, and click on the page or post name highlighted in blue.

    embedding videos on hubspot blogs

    • In the top editor bar above the post, I click Insert and select Embed from the dropdown menu.

    how to access embed options on hubspot content hub

    • A pop-up appears where I can either paste the embed code or enter a URL for HubSpot to embed content for me automatically.

    insert html embed codes on hubspot

    • Then all I need to do is paste in the code and hit Insert.
    • If I wanted to add the embed directly in the source code, I would click Advanced from the editor bar.

    how to access hubspot blog source code

    • I can click Source code, and the HTML of the page appears in a pop-up.

    insert embed code on hubspot html editor

    • Then I can paste the embed code where it needs to go on the page and hit Save changes.

    Inserting Embed Code in a WordPress Site

    There isn’t necessarily a single way to insert embed code on a WordPress site because it can depend on the template you’re using. But if I’m using the standard classic editor, here’s how I do it.

    • First, I head to the admin area in the back end and go to either Pages or Posts.
    • Then I click the title of the post or hover over it and click the Edit option that appears underneath the title to open up the post editor.
    • Next, I click on the Text tab on the upper right-hand corner of the text editor.

    how to embed content on a wordpress website

    • Finally, I paste the embed code where I want the embedded content to appear in the post.

    Step 3: Finished! You have successfully embedded content on your website or blog.

    Now all I need to do is save the page, or hit Update if I’m on a WordPress blog, and refresh the live URL to see the embedded content on the front end.

    Add embedded content to increase user engagement.

    There’s a lot of good content out there even if it hasn’t been created by me or the brand I’m working with, and I find using the embed option is a great way to add depth and interest to my webpages. It helps to increase visual appeal and engagement, especially if you’re embedding videos.

    Plus, it’s so easy to do. Once you’ve embedded content a couple of times it quickly becomes second nature. So experiment with embedding from different social media platforms in your page or blogs and watch your user engagement grow.

    Editor’s note: This post was originally published in September 2013 and has been updated for comprehensiveness.



    View original article here

    Share. Facebook Twitter LinkedIn Email Reddit
    Previous ArticleTrump Slams ‘Racist Sleazebag’ Charlamagne Tha God After Epstein-MAGA Remark
    Next Article ‘Shoulding’ Yourself Fuels Guilt. Here’s How To Stop.

    Related Posts

    AI email marketing tools: Our top picks for 2026

    June 10, 2026
    Read More

    Announcing the First Batch of Speakers for MozCon NYC 2026

    June 8, 2026
    Read More

    6 top answer engine optimization benefits for growth and enterprise marketers

    June 8, 2026
    Read More
    Add A Comment

    Leave A Reply Cancel Reply

    Demo
    Top Posts

    Former FBI, CIA Head Has ‘Serious Concerns’ With Trump Cabinet Picks

    December 28, 2024435

    Emirates to operate next-gen A350 on the third daily service to Cape Town

    January 14, 2026256

    AAVE Price Prediction: Target $215-225 by Mid-January 2025 as Technical Indicators Signal Bullish Momentum

    December 15, 2025240

    Ventive Hospitality Joins Green Fins: Strong ESG Lift

    February 17, 2026211
    Don't Miss
    Investment

    A Better Way To Protect Retirement Savings From Inflation

    By Staff WriterJune 10, 20266 Mins Read

    On sale this week: Treasury Inflation-Protected Securities.It wasn’t so long ago that the real rate…

    Read More

    Rachel Maddow Dunks On Donald Trump And His NBA Finals Boos

    June 10, 2026

    New Study Suggests GLP-1 Use Lowers Breast Cancer Risk

    June 10, 2026

    AI email marketing tools: Our top picks for 2026

    June 10, 2026
    Stay In Touch
    • Facebook
    • Twitter
    Demo
    About Us

    Small Business Minder brings together business and related news from around the world in one place. Follow us for all the business news you'll need.

    Facebook X (Twitter)
    Our Picks

    A Better Way To Protect Retirement Savings From Inflation

    June 10, 2026

    Rachel Maddow Dunks On Donald Trump And His NBA Finals Boos

    June 10, 2026
    Most Popular

    Former FBI, CIA Head Has ‘Serious Concerns’ With Trump Cabinet Picks

    December 28, 2024435

    Emirates to operate next-gen A350 on the third daily service to Cape Town

    January 14, 2026256
    © 2026 Small Business Minder
    • Home
    • Get In Touch

    Type above and press Enter to search. Press Esc to cancel.

    Ad Blocker Enabled!
    Ad Blocker Enabled!
    Our website is made possible by displaying online advertisements to our visitors. To get the most from our site, please disable your Ad Blocker.