As a webmaster with over 15 years of experience, I can‘t recommend enough adding LinkedIn share buttons to your WordPress site.
LinkedIn sharing can drive explosive growth by tapping into the world‘s largest professional network with over 740 million members.
For example, Social Media Today reports that optimized LinkedIn sharing can generate 25% more traffic and 5x more leads compared to generic social buttons.
But the key is using the official LinkedIn Share button to maximize visibility and engagement.
In this comprehensive guide, I‘ll compare the official and generic buttons, explain the technical details, and share custom optimizations based on my veteran expertise – with tips to boost shares and growth.
Let‘s dive in and get your LinkedIn game on point!
Contents
Official vs Generic LinkedIn Buttons: Key Differences
Not all share buttons are created equal. Here‘s an overview of the key differences between the official and generic LinkedIn buttons:
| Feature | Official Button | Generic Button |
|---|---|---|
| LinkedIn Integration | Directly links to LinkedIn‘s API and feeds | Just links to linkedin.com |
| Visibility | Content & link previews properly in LinkedIn feed and profiles | No preview or tracking of shares |
| Analytics | Provides share metrics through LinkedIn Insights | No analytics available |
| Customization | Fully configurable colors, sizes and text | Limited customization options |
As you can see, the official button is the clear winner, with native integration and tracking. Let‘s connect it to WordPress…
How to Get the Official Button Code
Getting the official button code takes just a minute. Follow these steps:
- Visit the LinkedIn Share Plugin site.
- Choose your button style and language.
- Click Get Code and copy the JavaScript code.

Now we have the code. Time to set it up in WordPress.
Display the Button in Posts, Pages and Widgets
Here are a few quick ways to display the button in WordPress:
Before/After Content
Use the the_content filter in functions.php or your theme:
// Display before content
function linkedin_share_before($content) {
$linkedin_code = ‘<script src="https://platform.linkedin.com/in.js" type="text/javascript"> lang: en_US</script>‘;
$linkedin_code .= ‘<script type="IN/Share" data-counter="top"></script>‘;
return $linkedin_code . $content;
}
add_filter(‘the_content‘, ‘linkedin_share_before‘);
// Display after content
function linkedin_share_after($content) {
// Same button code
return $content . $linkedin_code;
}
add_filter(‘the_content‘, ‘linkedin_share_after‘);
Sidebar Widget
Use a text widget with the LinkedIn code:

That‘s the basics! Now let‘s optimize that baby for maximum sharing.
Based on my experience managing dozens of sites, here are some pro tips:
Use Strong Calls to Action
Encourage sharing with language like "Share this article on LinkedIn to expand your network!"
Place Buttons Above the Fold
Buttons placed higher get more visibility and shares. Prioritize above content.
Others will follow your lead. Share newly published posts yourself.
Promote in LinkedIn Groups
Engage in relevant groups and share your content – with a customized message.
Use LinkedIn Insights
Review analytics on shares and clicks to optimize placement and messaging.

Combine with Other Sharing Buttons
Let visitors share on Twitter, Facebook, etc. alongside LinkedIn.
Troubleshooting Tips
Here are some common issues and fixes:
Button not appearing? Double check the code was added properly to your theme/widgets.
Errors when clicking? Typo in the JavaScript – run code through a validator.
Want to customize further? Modify the code through the API docs.
Still stuck? Contact LinkedIn support – they‘re very responsive!
The Power of LinkedIn Sharing
Adding LinkedIn‘s official share button seamlessly connects your content to a network of 740+ million professionals.
It only takes a minute to set up, and the results can be tremendous.
So tap into the world‘s largest professional community and watch your traffic, leads and authority skyrocket! You got this.
Let me know if you have any other questions! I‘m always happy to help fellow WordPress friends.
