{"id":2428,"date":"2025-08-01T11:00:00","date_gmt":"2025-08-01T11:00:00","guid":{"rendered":"http:\/\/www.zoomlavilin.com\/?p=2428"},"modified":"2025-08-07T13:17:45","modified_gmt":"2025-08-07T13:17:45","slug":"how-to-add-html-embed-codes-to-your-website-quick-tip","status":"publish","type":"post","link":"http:\/\/www.zoomlavilin.com\/index.php\/2025\/08\/01\/how-to-add-html-embed-codes-to-your-website-quick-tip\/","title":{"rendered":"How to add HTML embed codes to your website [quick tip]"},"content":{"rendered":"
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\u2019ll often use this tactic for video content as a way to repurpose it and increase its reach.<\/p>\n
So what\u2019s the process for embedding external content<\/a> on your site? It differs slightly between platforms depending on where you\u2019re pulling the content from, but the basic steps are mostly the same.<\/p>\n Let\u2019s take a look at how to add HTML embed codes to your site and the specific steps for different platforms.<\/p>\n Table of Contents<\/strong><\/p>\n <\/a> <\/p>\n \n Embedded content is referenced with HTML<\/a>, one of the most basic languages used on the web to design and lay out web pages.<\/p>\n You often see this code when you’re in the \u201cback end\u201d of a blog post, for example. That\u2019s where you\u2019ll 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.<\/p>\n <\/a> <\/p>\n \n 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.<\/p>\n Most social and multimedia websites have an option to generate an embed code right from each individual post. Here\u2019s an example of an embed code for a HubSpot YouTube video:<\/p>\n <iframe width=\u201c560\u201d height=\u201c315\u201d src=\u201chttps:\/\/www.youtube.com\/embed\/eGUEAvNpz48\u201d title=\u201cYouTube video player\u201d frameborder=\u201c0\u201d allow=\u201caccelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\u201d allowfullscreen><\/iframe><\/strong><\/p>\n And here\u2019s the embedded result.<\/p>\n Want to do the same thing on your blog posts and pages? Next, I\u2019ll go over how to generate an embed code from the most popular social sites. I\u2019ve 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.<\/p>\n <\/a> <\/p>\n \n Let\u2019s dive into each step in more detail.<\/p>\n 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.<\/p>\n Pro tip: <\/strong>A lot of website builders and CMS\u2019s 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.<\/p>\n Here\u2019s how I generate the embed code on most of the major social and content networks.<\/p>\n Here\u2019s how I embed a Facebook post:<\/p>\n If I want to embed an Instagram post, it\u2019s a pretty similar process. Just remember that embedding Instagram posts is only possible from the desktop version. Here\u2019s how I do it:<\/p>\n If I\u2019ve 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.<\/p>\n The other reason it\u2019s 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.<\/p>\n Back to how I embed YouTube videos:<\/p>\n There\u2019s 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\u2019s also a good way to quote experts without needing to contact them directly or get something custom for your post.<\/p>\n Here\u2019s how I can embed X posts:<\/p>\n 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\u2019s format and audience, embedding your Pinterest posts is a great way to grow your following on the social platform.<\/p>\n Here\u2019s the process I follow for embedding a Pinterest post:<\/p>\n SlideShare presentations are a little dated these days \u2013 it\u2019s a long while since I\u2019ve embedded one on a website. But, you never know. So it\u2019s useful to know how, just in case.<\/p>\n Here\u2019s I grab the embed code for a SlideShare presentation.<\/p>\n On a rare occasion, I might need to embed an external webpage. Like all embed codes, this is done using an iframe HTML tag.<\/p>\n Here\u2019s an example of what iframe HTML code looks like:<\/p>\n <iframe src=\u201curl\u201d title=\u201cdescription\u201d ><\/iframe><\/strong><\/p>\n I can use these same tags to embed an external webpage. Here\u2019s how I do it:<\/p>\n 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\u2019ll go over how you can do it in Content Hub<\/a> and WordPress<\/a>.<\/p>\n In Content Hub, although I could use the HTML editor if I wanted to, I actually don\u2019t need to in order to add embed content. Here\u2019s how it works:<\/p>\n There isn\u2019t necessarily a single way to insert embed code on a WordPress site because it can depend on the template you\u2019re using. But if I\u2019m using the standard classic editor, here\u2019s how I do it.<\/p>\n Now all I need to do is save the page, or hit Update<\/strong> if I\u2019m on a WordPress blog, and refresh the live URL to see the embedded content on the front end.<\/p>\n There\u2019s a lot of good content out there even if it hasn\u2019t been created by me or the brand I\u2019m 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\u2019re embedding videos.<\/p>\n Plus, it\u2019s so easy to do. Once you\u2019ve 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.<\/p>\n Editor’s note: This post was originally published in September 2013 and has been updated for comprehensiveness.<\/em><\/p>\n 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\u2019ll often use this tactic for… <\/p>\n","protected":false},"author":1,"featured_media":2430,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[11],"tags":[],"_links":{"self":[{"href":"http:\/\/www.zoomlavilin.com\/index.php\/wp-json\/wp\/v2\/posts\/2428"}],"collection":[{"href":"http:\/\/www.zoomlavilin.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.zoomlavilin.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.zoomlavilin.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.zoomlavilin.com\/index.php\/wp-json\/wp\/v2\/comments?post=2428"}],"version-history":[{"count":2,"href":"http:\/\/www.zoomlavilin.com\/index.php\/wp-json\/wp\/v2\/posts\/2428\/revisions"}],"predecessor-version":[{"id":2454,"href":"http:\/\/www.zoomlavilin.com\/index.php\/wp-json\/wp\/v2\/posts\/2428\/revisions\/2454"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/www.zoomlavilin.com\/index.php\/wp-json\/wp\/v2\/media\/2430"}],"wp:attachment":[{"href":"http:\/\/www.zoomlavilin.com\/index.php\/wp-json\/wp\/v2\/media?parent=2428"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.zoomlavilin.com\/index.php\/wp-json\/wp\/v2\/categories?post=2428"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.zoomlavilin.com\/index.php\/wp-json\/wp\/v2\/tags?post=2428"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}<\/a><\/p>\n
\n
<\/p>\n
Step <\/strong>1: Generate the embed code.<\/strong><\/h3>\n
How to Embed a Facebook Post<\/strong><\/h4>\n
\n
<\/p>\n
\n
<\/p>\n
\n
How to Embed an Instagram Post<\/strong><\/h4>\n
\n
<\/p>\n
\n
<\/p>\n
\n
How to Embed a YouTube Video<\/strong><\/h4>\n
\n
<\/p>\n
\n
<\/p>\n
\n
<\/p>\n
\n
How to Embed an X Post<\/strong><\/h4>\n
\n
<\/p>\n
\n
<\/p>\n
\n
<\/p>\n
\n
<\/p>\n
\n
How to Embed a Pinterest Post<\/strong><\/h4>\n
\n
<\/p>\n
\n
<\/p>\n
\n
How to Embed a SlideShare Presentation<\/strong><\/h4>\n
\n
<\/p>\n
\n
<\/p>\n
\n
How to Embed an External Webpage<\/strong><\/h4>\n
\n
Step <\/strong>2: Access your content management system and paste the embed code in your HTML viewer.<\/strong><\/h3>\n
Inserting Embed Code onto a Content Hub Site<\/strong><\/h4>\n
\n
<\/p>\n
\n
<\/p>\n
\n
<\/p>\n
\n
<\/p>\n
\n
<\/p>\n
\n
<\/p>\n
\n
Inserting Embed Code in a WordPress Site<\/strong><\/h4>\n
\n
<\/p>\n
\n
Step 3: Finished! You have successfully embedded content on your website or blog.<\/strong><\/h3>\n
Add embedded content to increase user engagement.<\/strong><\/h2>\n
<\/p>\n","protected":false},"excerpt":{"rendered":"