How to Embed a LinkedIn Post on Your Website: Guide 2026

Learn how to embed LinkedIn posts on any website. Step-by-step instructions for WordPress, HTML, and popular builders with responsive embed codes.

Anandi

How to Embed a LinkedIn Post on Your Website

To embed a LinkedIn post on your website, click the three dots (...) on any public LinkedIn post, select "Embed this post," copy the iframe code, and paste it into your site's HTML. The embed code works on WordPress, Squarespace, Wix, Webflow, and any platform that accepts custom HTML. The entire process takes under two minutes.

Embedding LinkedIn posts on your website serves a dual purpose. It adds social proof to landing pages, case studies, and blog posts. It also drives traffic back to your LinkedIn profile, which strengthens your inbound lead generation strategy. According to LinkedIn's Marketing Solutions documentation, embedded posts display the full content including images, videos, and engagement counts in real time.

Want to Generate Consistent Inbound Leads from LinkedIn?

Get our complete LinkedIn Lead Generation Playbook used by B2B professionals to attract decision-makers without cold outreach.

How to build authority that attracts leads
Content strategies that generate inbound
Engagement tactics that trigger algorithms
Systems for consistent lead flow

No spam. Just proven strategies for B2B lead generation.

Key Takeaways

  • LinkedIn provides a native embed code for any public post. You do not need third-party tools or plugins to embed a LinkedIn post on your website.
  • Only public posts can be embedded. Posts with restricted visibility (connections only or group posts) will not generate an embed code option.
  • Embedded posts are not responsive by default. You need a simple CSS wrapper to make them display correctly on mobile devices.
  • WordPress supports LinkedIn embeds natively through both the oEmbed protocol and the Custom HTML block — no plugin required.
  • Embedding high-performing posts on your website creates a feedback loop that increases both web traffic and LinkedIn engagement simultaneously.

How to Get a LinkedIn Post Embed Code

Follow these steps to grab the embed code from any public LinkedIn post.

How to get a LinkedIn post embed code - step by step

Step 1: Find the Post You Want to Embed

Navigate to the LinkedIn post on desktop. You can use the post directly from your feed, from a profile page, or by opening the post's direct URL. The post must be set to "Public" (globe icon) — posts visible only to connections will not have the embed option.

Step 2: Click the Three-Dot Menu

In the upper-right corner of the post, click the three dots (...). This opens a dropdown menu with several options.

Step 3: Select "Embed This Post"

Click "Embed this post" from the dropdown. LinkedIn will generate an iframe snippet that looks like this:

<iframe src="https://www.linkedin.com/embed/feed/update/urn:li:share:1234567890"
  height="400" width="504" frameborder="0"
  allowfullscreen="" title="Embedded post">
</iframe>

Step 4: Copy the Code

Click the "Copy code" button or manually select and copy the entire iframe snippet. You are now ready to paste it into your website.

Important note: If you do not see the "Embed this post" option, the post is either set to a restricted audience or it is a LinkedIn article rather than a standard post. According to LinkedIn's Help Center, only feed posts (not articles or newsletters) support the native embed feature.

Embed LinkedIn Post in WordPress

WordPress offers two methods to embed a LinkedIn post. Both work without any additional plugins.

Method 1: Paste the URL Directly (oEmbed)

WordPress supports LinkedIn oEmbed since version 4.7. Simply paste the LinkedIn post URL into a Paragraph block or the Classic Editor. WordPress will automatically render the embedded post.

  1. Copy the full URL of the LinkedIn post (e.g., https://www.linkedin.com/posts/username_activity-1234567890)
  2. Open your WordPress post or page editor
  3. Paste the URL on its own line in a Paragraph block
  4. WordPress converts it to an embedded post automatically

This is the fastest method, but it offers less control over sizing and styling.

Method 2: Use the Custom HTML Block

For more control, use the iframe embed code directly.

  1. In the WordPress block editor, click the + button to add a block
  2. Search for and select "Custom HTML"
  3. Paste the LinkedIn iframe embed code
  4. Click Preview to verify it displays correctly
  5. Publish or update your page

This method gives you full control over the width, height, and any wrapper CSS you want to apply. It is the recommended approach if you need responsive design, which we cover below.

Embed LinkedIn Post in HTML

If you are working with a static site or custom-coded website, embedding is straightforward.

Paste the iframe code directly into your HTML file where you want the post to appear:

<div class="linkedin-embed-wrapper">
  <iframe src="https://www.linkedin.com/embed/feed/update/urn:li:share:1234567890"
    height="400" width="504" frameborder="0"
    allowfullscreen="" title="Embedded post">
  </iframe>
</div>

The wrapper div is optional but recommended. It makes it easier to apply styling and responsive behavior. You can place this code inside any <body> element — in blog posts, landing pages, testimonial sections, or portfolio pages.

For sites built with React, Vue, or other frameworks, the iframe works the same way. Frameworks like Next.js or Astro render the iframe as standard HTML on the client side with no additional configuration.

Embed LinkedIn Post in Popular Website Builders

Wix

  1. Open your Wix Editor and navigate to the page where you want the embed
  2. Click Add (+) in the left sidebar
  3. Select Embed Code then HTML iframe
  4. Paste the LinkedIn iframe code into the code field
  5. Resize the element by dragging its corners
  6. Publish your site

Wix renders the iframe inside a sandboxed container. If the post appears cut off, increase the element height to at least 500px.

Squarespace

  1. Open the page editor and click a content area
  2. Add a Code Block (from the Insert menu)
  3. Paste the LinkedIn iframe embed code
  4. Uncheck "Display source" to hide the raw code
  5. Click Apply and then save the page

Squarespace Code Blocks support HTML and JavaScript. The LinkedIn embed will render correctly in both the editor preview and the live site. According to Squarespace's documentation, Code Blocks are available on Business plans and higher.

Webflow

  1. Open your Webflow Designer and navigate to the target page
  2. Drag an Embed element from the Components panel onto the canvas
  3. Paste the LinkedIn iframe code into the code editor
  4. Close the editor — the embed will display in the Designer preview
  5. Publish your site to make it live

Webflow gives you full CSS control over the embed wrapper, making it the easiest builder for creating responsive LinkedIn embeds.

Making Embedded LinkedIn Posts Responsive

LinkedIn's default embed code uses a fixed width of 504 pixels. On mobile screens, this creates horizontal scrolling or content overflow. Here is how to fix it.

Making embedded LinkedIn posts responsive on mobile

The CSS Wrapper Method

Wrap your iframe in a container and apply these styles:

<style>
  .linkedin-embed-responsive {
    position: relative;
    width: 100%;
    max-width: 504px;
    margin: 0 auto;
  }
  .linkedin-embed-responsive iframe {
    width: 100%;
    min-height: 400px;
  }
</style>

<div class="linkedin-embed-responsive">
  <iframe src="https://www.linkedin.com/embed/feed/update/urn:li:share:1234567890"
    height="500" width="504" frameborder="0"
    allowfullscreen="" title="Embedded post">
  </iframe>
</div>

This approach caps the embed at 504px on desktop while allowing it to shrink on smaller screens. The min-height prevents the post from collapsing on shorter viewports.

Adjusting Height Dynamically

LinkedIn embeds do not support auto-height through the iframe. If your embedded post contains a long text or a document carousel, you may need to increase the height attribute manually. Test on both desktop and mobile to find the right value.

A reasonable starting point:

  • Text-only posts: 350-450px
  • Posts with a single image: 500-600px
  • Posts with a document or carousel: 600-800px
  • Video posts: 550-650px

Troubleshooting Common Embed Issues

"Embed This Post" Option Is Missing

This happens when the post's visibility is set to "Connections only" or when the content is a LinkedIn article or newsletter. Ask the post author to change visibility to "Public" (globe icon) if you need to embed it.

The Embed Shows a Blank White Box

Three common causes:

  1. Ad blockers or privacy extensions are blocking the LinkedIn iframe. Test in an incognito window with extensions disabled.
  2. Content Security Policy (CSP) headers on your site are blocking linkedin.com as a frame source. Add https://www.linkedin.com to your frame-src directive.
  3. The post was deleted or made private after you grabbed the embed code. Verify the original post still exists.

The Embed Overflows on Mobile

Apply the responsive CSS wrapper described above. If you are using WordPress, ensure your theme does not apply a max-width to iframes that conflicts with the embed dimensions.

Slow Loading Times

LinkedIn embeds load external resources from LinkedIn's servers. To improve page speed, consider lazy-loading the iframe by adding loading="lazy" to the iframe tag:

<iframe src="https://www.linkedin.com/embed/feed/update/urn:li:share:1234567890"
  height="500" width="504" frameborder="0"
  allowfullscreen="" title="Embedded post"
  loading="lazy">
</iframe>

This tells the browser to defer loading the embed until the user scrolls near it, which improves your Core Web Vitals scores.

What Most Guides Get Wrong

Most tutorials on embedding LinkedIn posts stop at "copy and paste the code." That misses the point entirely.

The embed itself is not the strategy. Choosing which post to embed is the strategy.

Embedding a random company update on your About page does nothing for conversions. Embedding a post where a customer describes their results with your product on your case study page — that is social proof that moves pipeline.

Here is what actually matters:

Embed posts that serve the page's goal. A testimonial post belongs on a landing page. A thought leadership post belongs on your blog. A product announcement belongs on a feature page. Match the embedded content to the visitor's intent.

Embed posts with high engagement. A post showing 200+ reactions and 50+ comments signals credibility far more than a post with 3 likes. According to BrightLocal's 2025 Consumer Trust Survey, 84% of consumers trust online social proof as much as personal recommendations.

Update your embeds regularly. Stale embedded posts from 2023 make your site look abandoned. Refresh embeds quarterly with your most recent high-performing content.

Track clicks from embeds back to your LinkedIn profile. Use UTM parameters on links within your LinkedIn posts to measure which embedded posts drive the most website engagement. This data helps you write better posts over time.

How ConnectSafely Helps

Creating posts worth embedding starts with consistently publishing high-quality LinkedIn content. That is exactly what ConnectSafely is built for.

Write Posts That People Actually Want to Share

ConnectSafely's AI-powered content tools help you craft LinkedIn posts with proven hook structures and engagement frameworks. When your posts generate high engagement on LinkedIn, they become powerful social proof when embedded on your website.

Schedule and Publish Consistently

Use ConnectSafely's LinkedIn post scheduler to maintain a consistent publishing cadence. Consistency compounds — the more frequently you publish, the more high-performing posts you have available to embed across your site.

See What Is Working

ConnectSafely's analytics dashboard shows you exactly which posts drive the most impressions, engagement, and profile views. Use this data to identify your best-performing content and embed those posts on your highest-traffic pages.

Ready to create LinkedIn content worth embedding? Start with ConnectSafely's free post scheduler---schedule unlimited posts at no cost, no credit card required---and see the difference in your first week.

Frequently Asked Questions

Can I embed a LinkedIn post on any website?

Yes. LinkedIn's embed code uses a standard HTML iframe that works on any website or platform that accepts custom HTML. This includes WordPress, Squarespace, Wix, Webflow, Shopify, static HTML sites, and JavaScript frameworks like React and Next.js.

Is it free to embed LinkedIn posts?

Completely free. LinkedIn does not charge for embedding posts, and there is no limit to how many posts you can embed. You do not need a LinkedIn Premium subscription or any third-party tool. The only requirement is that the original post must be set to "Public" visibility.

Do embedded LinkedIn posts update in real time?

Yes. When someone likes or comments on the original LinkedIn post, the engagement counts in the embedded version update automatically. If the original author edits the post text, the embedded version reflects those changes as well. However, if the post is deleted, the embed will show a blank or error state.

Can I embed someone else's LinkedIn post?

Yes, as long as their post is set to "Public." LinkedIn's embed feature is available on any public post regardless of who authored it. It is considered standard practice to embed public social media posts, similar to embedding a public tweet. As a courtesy, you may want to notify the author, but it is not required. See LinkedIn's Terms of Service for full details on content usage.

How do I embed a LinkedIn company page post versus a personal post?

The process is identical. Navigate to the company page post, click the three-dot menu, select "Embed this post," and copy the iframe code. Company page posts and personal posts use the same embed format. The only difference is that company page posts will display the company name and logo in the embed, while personal posts display the individual's profile photo and name.

About the Author

Anandi

Content Strategist, ConnectSafely.ai

LinkedIn growth strategist helping B2B professionals build authority and generate inbound leads.

LinkedIn MarketingB2B Lead GenerationContent StrategyPersonal Branding

Want to Generate Consistent Inbound Leads from LinkedIn?

Get our complete LinkedIn Lead Generation Playbook used by B2B professionals to attract decision-makers without cold outreach.

How to build authority that attracts leads
Content strategies that generate inbound
Engagement tactics that trigger algorithms
Systems for consistent lead flow

No spam. Just proven strategies for B2B lead generation.

Ready to Transform Your LinkedIn Strategy?

Stop chasing leads. Start attracting them with ConnectSafely.ai's inbound lead generation platform.

Get Started Free

See How It Works

Watch how people get more LinkedIn leads with ConnectSafely

Video thumbnail 1
Video thumbnail 2
Video thumbnail 3
Video thumbnail 4
240%
More profile views in 30 days
10-20
Inbound leads per month
8+
Hours saved every week
$35
Average cost per lead