Social Share Buttons

Add social media sharing buttons to your posts and pages, making it easy for visitors to share your content on Facebook, X (Twitter), LinkedIn, WhatsApp, Reddit, and email.

Use Cases

  • Increase content reach by making it easy for readers to share on social media
  • Add lightweight sharing buttons without heavy third-party scripts
  • Give mobile users native sharing via the Web Share API
  • Grow your audience organically through reader-powered distribution

How It Works

  1. Enable the module and select your preferred platforms
  2. Choose where buttons appear (before content, after, or both)
  3. Buttons automatically display on your posts
  4. Visitors click to share directly to their preferred platform
  5. On mobile, the native share sheet can be triggered

Where to Find It

Location: Enable in Switchboard, then configure platforms and position. Use [social_share] shortcode for manual placement.

Settings

SettingTypeDefaultDescription
PlatformsTagsFacebook, X, LinkedIn, EmailWhich sharing buttons to display
Post TypesTagsPostsShow buttons on these post types
PositionSelectAfter ContentBefore, after, or both
Auto DisplayToggleOnAutomatically add to content
Web Share APIToggleOnShow native share button on mobile

Available Platforms

PlatformDescription
FacebookShare to Facebook timeline
X (Twitter)Post a tweet with link
LinkedInShare to LinkedIn feed
WhatsAppSend via WhatsApp message
RedditSubmit to Reddit
EmailOpen email client with pre-filled subject

Display Options

Auto Display

When enabled, buttons appear automatically based on your position setting:

  • Before Content: Buttons at the top of your post
  • After Content: Buttons at the end (recommended)
  • Both: Buttons in both positions

Shortcode

For manual placement or custom positions, use the shortcode:

[social_share]

Shortcode Options

ShortcodeDescription
[social_share]Display with default platforms
[social_share platforms="facebook,x,linkedin"]Specific platforms only
[social_share platforms="whatsapp,email"]Mobile-friendly selection

In Theme Templates

<?php echo do_shortcode('[social_share]'); ?>

Web Share API

The Web Share API provides a native sharing experience on mobile devices. When enabled:

  • A “Share” button appears alongside platform buttons
  • Tapping it opens the device’s native share sheet
  • Users can share to any app installed on their device
  • Falls back gracefully on unsupported browsers

This feature works on:

  • iOS Safari
  • Android Chrome
  • Other modern mobile browsers

Styling

The share buttons container has the class switchboard-social-share. Customize with CSS:

/* Container styling */
.switchboard-social-share {
    margin: 40px 0;
    padding: 24px;
    background: #f8f9fa;
    border-radius: 8px;
}

/* Heading */
.switchboard-social-share h4 {
    font-size: 16px;
    margin-bottom: 16px;
}

/* Individual buttons */
.switchboard-share-link {
    padding: 10px 16px;
    border-radius: 4px;
    font-size: 14px;
}

/* Hover effect */
.switchboard-share-link:hover {
    opacity: 0.85;
}

Button Colors

Each platform uses its official brand color:

PlatformColor
Facebook#1877f2
X#000000
LinkedIn#0077b5
WhatsApp#25d366
Reddit#ff4500
Email#666666

Privacy Benefits

Unlike many social sharing plugins, Switchboard’s share buttons:

  • Don’t load third-party JavaScript
  • Don’t track your visitors
  • Don’t slow down your page load
  • Don’t create external requests until clicked
  • Work even with ad blockers enabled

Sharing happens through simple URL schemes — the buttons just open the sharing URL when clicked.

FAQ

Do share buttons slow down my site?No. The buttons are lightweight HTML and CSS with minimal JavaScript. No external scripts are loaded until a visitor actually clicks a share button.
Do these buttons track my visitors?No. Unlike Facebook’s official share button or other tracking widgets, these buttons don’t load any third-party scripts or track your visitors in any way.
Can I show different buttons on different pages?Yes, use the shortcode with the platforms parameter: [social_share platforms="facebook,linkedin"] on some pages and different platforms on others.
Why don’t I see the Web Share button on desktop?The Web Share API is primarily supported on mobile devices. On desktop browsers without support, the button is automatically hidden and only individual platform buttons are shown.
Can I add more social networks?The module includes the most popular platforms. For additional networks, you can request them as a feature, or add custom buttons using CSS and the shortcode approach.

Place share buttons after your content. Readers who finish an article are most likely to share it, so that’s the prime location for share buttons.

The share count isn’t displayed because most social platforms no longer provide public share count APIs. Focus on making great content that people want to share!

PRO

Get access to all 147 modules with a single license

Upgrade to Pro