Official DirJournal Authority Guide
    10 min read

    How to Add Social Share Buttons to Your Blog (Updated for X, LinkedIn & Facebook)

    Ann Smarty
    Verified Contributor
    Last Human Verified: February 2026
    Originally published May 2020, Updated March 2026
    How to Add Social Share Buttons to Your Blog (Updated for X, LinkedIn & Facebook)
    How to Add Social Share Buttons to Your Blog (Updated for X, LinkedIn & Facebook)

    Key Takeaways: Adding X (Twitter) Buttons to Your Blog

    • 1Novashare is the top WordPress plugin pick — under 5 KB frontend footprint with built-in Click to Tweet.
    • 2X's official WordPress plugin is discontinued. Use Novashare, Social Warfare, or AddToAny instead.
    • 3Click-to-tweet in-content buttons generate significantly higher engagement than generic share buttons.
    • 4The X API is no longer free — verify any plugin that displays tweet counts still functions in 2026.

    X (formerly Twitter) remains one of the most powerful content marketing platforms out there. And unlike Facebook or Instagram, which have been steadily throttling organic reach for brands, X still gives everyone — bloggers, brands, and regular humans alike — a real shot at free, organic visibility.

    One of the most reliable ways to turn that into actual traffic is to make sharing your content as effortless as possible. A well-placed X button is a small thing, but it quietly nudges readers to spread your content with a single click — and those nudges add up.

    A lot has changed since this article was first written. Twitter is now X. Elon Musk acquired the platform in late 2022, rebranded it in 2023, overhauled the API and developer ecosystem, and retired several old tools in the process. Some plugins and third-party services that used to work seamlessly have had to adapt — or have gone away entirely. This updated guide cuts through the noise and shows you what actually works in 2026.

    Option 1

    WordPress Plugins

    Recommended for Most Bloggers

    If your site runs on WordPress, the plugin route is almost always the right call. It keeps things maintainable, and the good ones are now remarkably lightweight — nothing like the page-speed disasters some older social plugins used to cause.

    Check Compatibility

    Social Warfare — Still Solid, but Watch the Warnings

    Social Warfare remains a popular option. It gives you floating buttons, per-page social sharing customisation, a click-to-tweet feature, and Twitter Card support for media-rich tweets. Its free version covers X, Facebook, LinkedIn, Pinterest, and Mix. The premium tier starts at $29.

    That said: as of early 2025, Social Warfare flagged compatibility issues with WordPress 6.7+. The developers have been patching actively (version 4.5.6 dropped in March 2025), but if you’re running the latest WordPress, double-check compatibility notes before installing.

    Free tier: YesPremium: From $29WP 6.7+: ⚠ Verify first
    Best Free

    AddToAny — the Best Free Option

    If you’re not ready to pay for a plugin, AddToAny is the most reliable free pick. It’s featherlight (adding roughly 1.2 KB to your pages), supports over 100 networks, and is GDPR-compliant out of the box — no cookies, no tracking scripts. For simple blogs that just want an X share button without fuss, it does the job very well.

    Price: FreeFrontend size: ~1.2 KBGDPR: ✓ CompliantURL: addtoany.com
    Privacy-First

    Shared Counts — Lightweight and Privacy-First

    Another solid free option. Shared Counts supports X, Facebook, Pinterest, LinkedIn, and Reddit, with clean styling options and full GDPR compliance. It doesn’t use cookies or save user data — a big deal for European readers. Buttons can be placed before content, after content, or both.

    Price: FreeGDPR: ✓ No cookiesURL: wordpress.org/plugins/shared-counts
    Option 2

    Create the Button Yourself

    No Plugin Required

    If plugins aren’t your thing, or your site doesn’t run on WordPress, X’s own publishing tool makes it straightforward to generate embed code manually.

    1. Head to publish.twitter.com and choose “Twitter Buttons”
    2. Select “Share Button” as your button type
    3. Use the optional fields to pre-fill a hashtag or your X handle into every tweet that originates from your site
    4. Copy the generated code and paste it anywhere in your site template where you want the button to appear

    The button automatically detects the URL of whatever page it’s on, so the same code works across your entire site. For developers who want finer control, X’s developer documentation at developer.x.com offers additional parameters — you can pre-fill tweet text, specify a URL to share, set the button size, and track click events via JavaScript.

    <!-- Basic X share button -->
    <a class="twitter-share-button"
       href="https://twitter.com/intent/tweet">
       Tweet
    </a>

    <!-- Extended with pre-filled text -->
    <a href="https://twitter.com/intent/tweet?text=Your+text&url=https://yoursite.com&via=yourhandle">
       Share on X
    </a>

    Option 3

    “Click to Tweet” In-Content Buttons

    High-Leverage Tactic

    A click-to-tweet button is one of the highest-leverage tools in a content marketer’s toolkit. Rather than just offering to “share this page,” it pulls out a specific quote, stat, or insight from your article and invites the reader to tweet that exact thing — with one click.

    Done well, these are remarkably effective. Pick a genuinely compelling line — a surprising stat, a strong opinion, a memorable takeaway — and you’ll see engagement rates that a generic share button could never match. Include your X handle in the pre-filled tweet text so you’re tagged in every share.

    Using a plugin: The easiest approach is Novashare’s built-in Click to Tweet block, which works directly inside the WordPress block editor. Alternatively, Better Click to Tweet (wordpress.org/plugins/better-click-to-tweet) is a dedicated plugin that’s still actively maintained. It uses a simple shortcode:

    [bctt tweet="Your compelling quote or stat here." via="yourhandle"]

    Without a plugin: You can generate click-to-tweet links manually using this URL format:

    https://twitter.com/intent/tweet?text=Your+quote+here&url=https://yoursite.com

    Wrap it in a styled anchor tag. The downside is that you’re maintaining each link yourself with no automatic URL injection — for a high-volume blog, a plugin is worth the simplicity.

    Option 4

    Embedding Your X Feed on Your Blog

    For Sidebar & Brand Building

    A share button gets your content onto X. An embedded feed does the reverse — it brings your X activity onto your blog. This is useful for sidebar engagement, keeping your site looking active, or building credibility by showing readers you’re genuinely on the platform.

    The official path is through publish.twitter.com, where you can generate embed code for a full timeline, a hashtag feed, a list feed, or a single post. Paste the code into a Custom HTML widget in your WordPress sidebar — done.

    If you want something more polished and customisable, Smash Balloon’s Twitter Feed Pro (smashballoon.com) is the go-to solution. It gives you full design control, supports multiple feed types (hashtag, user timeline, lists), and auto-refreshes so your feed is always current.

    API note: X’s API access is no longer free at any meaningful scale. Tools that pull in share counts, analytics, or feed data have had to pivot or charge more to cover API costs. If a plugin relies on the X API to display tweet counts, double-check that it’s still functioning correctly in 2026.
    Option 5

    Third-Party Social Sharing Services

    For Multi-Network Setup

    Services like ShareThis (sharethis.com) and AddToAny (addtoany.com) offer hosted social sharing widgets embedded via a single script tag. You get a suite of sharing buttons — including X — with minimal setup and no server-side processing required.

    The tradeoff is that these services load scripts from external servers, meaning a third party is involved in your page performance. For most sites, that’s a fine tradeoff. If you’re very performance-sensitive, the manual embed or a lightweight plugin like Novashare will get you better Core Web Vitals scores.

    A Few Things to Keep in Mind in 2026

    💸
    X API is no longer free. This affects tools that pull in share counts, analytics, or feed data — many have had to pivot or charge more. If a plugin relies on the X API for tweet count display, verify it’s still functioning correctly.
    🎺
    Twitter Cards still work. Rich link previews that show up when someone shares your URL on X are still fully supported. Novashare and Social Warfare both configure these automatically. Ensure your Open Graph tags are in order: og:title, og:description, og:image, and twitter:card at minimum.
    📷
    Mobile matters more than ever. The majority of X users are on mobile. Your share buttons need to be responsive and tap-friendly. Floating button bars in particular should be tested on small screens — they can overlap content if not configured correctly.
    Core Web Vitals implications. In 2026, page speed directly impacts rankings. If you’re choosing between plugins, the performance gap matters. Novashare’s sub-5 KB footprint is genuinely different from heavier alternatives. Test your implementation with PageSpeed Insights before and after.

    Your readers might genuinely want to share your content on X. The only question is whether you’re making it easy enough for them to bother. A well-placed share button removes the friction entirely — and that small removal can translate into real traffic over time.

    Don’t overthink the setup. For most WordPress bloggers, Novashare (or AddToAny if you prefer free) handles everything you need. Add a couple of well-chosen click-to-tweet quotes inside your longer posts, and you’ve covered 80% of what actually moves the needle. The combination of a standard share button plus an in-content click-to-tweet CTA works better than either alone. Good luck!

    Frequently Asked Questions

    What is the main takeaway from this guide?
    This guide provides actionable, expert-verified strategies on add social share buttons to your blog (updated for x, linkedin & facebook). Every recommendation has been reviewed for accuracy as of February 2026.
    Who wrote this article?
    This article was written by a verified DirJournal contributor with domain expertise in business strategy. All content undergoes human editorial review before publication.
    How can I find a business that offers these services?
    Browse the DirJournal verified directory to find pre-vetted companies across 30,000+ listings. Filter by category, location, and ratings to find the right match.
    Is DirJournal content kept up to date?
    Yes. Every cornerstone article is reviewed and human-verified on a rolling basis. This article was last reviewed in February 2026 to ensure all advice, links, and data remain current.

    Related Resources

    Looking for verified service providers? Browse our directory categories below — all human-audited and trusted by decision-makers since 2007.

    Last Human Review: February 2026·Expert Author: Ann Smarty

    Prove your business authority where it matters

    Join DirJournal's verified directory with a permanent listing trusted by decision-makers worldwide.