Quick Answer
To get the embed code for a LinkedIn post, you need to open the post and click on the “Embed” icon which looks like ““. This will open up a window with the embed code that you can copy and paste onto your website or blog. The embed code allows you to display the LinkedIn post natively on your site.
Steps to Get the Embed Code
Here are the detailed steps to get the embed code for a LinkedIn post:
- Open the LinkedIn post you want to embed. This could be your own post or another user’s public post.
- Click on the “More” icon (the three dots) at the top right corner of the post.
- From the dropdown menu, click on “Embed”.
- This will open up a window with the embed code for that post. The code will look something like this:
<script src="https://www.linkedin.com/embedcode/key=AQE_j7Az9MtKjuYZDvXomnv8EQE5wLPWLtyRDikP8CnZAqORiMLMPc3henp3teaz74LeelONd5A0ZO6V" type="text/javascript"></script>
- Copy the entire embed code by clicking on the “Copy” button.
- Paste this embed code on your website or blog page where you want the LinkedIn post to be displayed.
That’s it! The LinkedIn post will now be displayed natively on your website.
Customizing the Embed Code
When you copy the default embed code from LinkedIn, it comes with the default width of 100%. You can customize the width by adding width parameter in the embed code like this:
<script src="https://www.linkedin.com/embedcode/key=xxx" width="500" type="text/javascript"></script>
This will set the width of the embedded post to 500 pixels.
Some other parameters you can customize:
- height – Sets the height of the embed in pixels
- mini – Displays a mini version of the post
- related – Shows related posts below the embedded post
- share – Shows the LinkedIn share button
For example:
<script src="https://www.linkedin.com/embedcode/key=xxx" width="500" height="400" mini="true" related="false" share="true" type="text/javascript"></script>
This will embed a mini version of the post, without related posts but with the share button.
Important Notes
Here are some important things to note about embedding LinkedIn posts:
- You can only embed public posts, not private ones.
- There are limitations on how many posts you can embed per page.
- The embed code will only work on sites having HTTPS protocol.
- The post can take a few seconds to load on first embed.
- LinkedIn reserves the right to block any website from embedding posts if they detect abuse.
- Don’t forget to refresh the embed code if the original post is updated.
Embedding LinkedIn Posts on WordPress
If your website is powered by WordPress, here is how you can easily embed LinkedIn posts:
- Install and activate the oEmbed WordPress plugin. This allows embedding third-party content.
- Open the LinkedIn post you want to embed and copy the embed code.
- Paste the embed code in your WordPress page or post content.
- Save the page/post. The LinkedIn post will be embedded.
That’s all there is to it. The oEmbed plugin automatically converts the embed code into the relevant WordPress embed shortcode.
Some key pointers for embedding on WordPress:
- Make sure you have oEmbed installed and activated.
- Paste the full embed code as it is without manually converting it to shortcode.
- The post width might need to be set to 100% width for full-width layout.
- If embed doesn’t show, disable plugins one by one to find conflicts.
Pros and Cons of Embedding LinkedIn Posts
Here are some pros and cons to consider before embedding LinkedIn posts on your website:
Pros
- Displays interactive and multimedia content like images, videos etc.
- Renders the post natively maintaining the original branding and styling.
- Can help drive referral traffic from your website to LinkedIn.
- Easy to implement with just a simple copy-paste of the embed code.
Cons
- You lose control over the post content which can change later.
- Need to depend on external content not on your own website.
- There are embed count limits and other restrictions.
- Requires internet access to load the content.
- May not gel well with your website design and layout.
So carefully evaluate the pros and cons before deciding whether to embed LinkedIn posts on your website.
Embedding Posts vs Linking to Posts
Instead of embedding LinkedIn posts, an alternative is to simply link to the posts. Here is a comparison between embedding and linking to posts:
Embedding | Linking |
---|---|
Displays the full post content on your site natively | Only displays the post title and snippet on your site |
Lets you customize and style the embedded post | No control over post styling |
Requires embed code implementation | Just need to paste the post URL |
Depends on external content | Full control over your content |
Problems if LinkedIn blocks embeds | More self-reliant |
Visitors remain on your site | Clicks take visitors off your site |
As you can see, both options have their own pros and cons. Evaluate carefully and choose what works best for your specific goals and scenario.
Conclusion
Embedding LinkedIn posts can be a quick and easy way to display interactive content on your website. However, you need to keep the embed limitations and dependencies in mind. If used judiciously, it can help engage visitors and complement your original content.
To summarize, here is the process:
- Open the LinkedIn post and click the embed option
- Copy the generated embed code
- Paste the code on your website page
- Customize parameters like width, height etc if needed
- Consider pros and cons of embedding vs linking
With the embed code implemented, the LinkedIn post should display and function seamlessly on your website. Over to you to leverage this option wisely to boost your content and visitor engagement!