Request a Demo
  • Platform
    • Donations
    • Campaigns
    • Events
    • eCards
    • CRM
  • Features
  • Integrations
  • Resources
    • Docs
    • Product updates
    • Changelog
  • Company
  • Platform
    • Donations
    • Campaigns
    • Events
    • eCards
    • CRM
  • Features
  • Integrations
  • Resources
    • Docs
    • Product updates
    • Changelog
  • Company
Request a Demo

Classes

  • Helpers/AdminMenuHelper
  • Helpers/API
  • Helpers/Helper
View Categories

Social Share Widget – Internal Guide

Reading Time: 5 Minutes

Use the [ inline-social-share ] shortcode to embed a customizable social sharing widget.

🔧 Shortcode #

[ inline-social-share ]

You can enhance it using several optional attributes:

⚙️ Attributes #

socials (optional) #

Default:
facebook,instagram,whatsapp,tiktok,twitter,linkedin,qr

Usage:
Define which social platforms to display.

Example:

Share:

  • This will only show Instagram and Facebook.
  • Does not affect the “Copy Link” button or the device’s default share modal.
  • Using this will hide the QR modal.

copy (optional) #

Default:
true

Usage:
Show or hide the copy-to-clipboard button.

Example:

Share:


link (optional) #

Default:
(empty)

Usage:
Manually specify the link to be shared.

Example:
[ inline-social-share link="https://levcharity.com/about/" ]

Overrides currentPostLink if both are set.

Preview:

Share:

currentPostLink (optional) #

Default:
true

Usage:
Automatically uses the current page/post URL as the shared link.

Example:

Share:


sharer (optional) #

Default:
true

Usage:
Enables or disables the native device share modal (if available).

Example:

Share:


link_class (optional) #

Usage:
Add custom CSS classes to the “Copy Link” button.


label (optional) #

Default:
Share:

Usage:
Custom label shown before the social buttons.

Example:

Share with your friends


🎨 Customization & Developer Hooks #

🔁 WordPress Filters #

Modify shortcode attributes and UI:
levit_block_social-share-inline_atts
Use this to customize passed attributes, icons, and labels.

Modify the QR code logo:
levit_block_social-share-inline_logo_src

  • Defaults to: Levcharity > Image > Organization Logo
  • Fallback: WordPress Site Icon

QR Code – Main Color (dots):
levit_block_social-share-inline_qr_main_color_force

  • Default: average color of the logo
  • Fallback: Levcharity’s magenta

QR Code – Secondary Color (corners):
levit_block_social-share-inline_qr_secondary_color_force

  • Default: lighter version of average logo color
  • Fallback: Levcharity’s magenta

Sharer – Custom SVG icon for button
levit_block_social-share_sharer_icon

  • Default:

📡 JavaScript Events #

QR Modal Generated:
Event: levit-inline-social-share-qr-generated

  • Triggered on: document.body
  • event.detail.modalWrapper gives you access to the QR modal wrapper element for further customization or styling.
Was this article helpful?
Still stuck? How can we help?

How can we help?

Updated on April 26, 2025
Table of Contents
  • 🔧 Shortcode
  • ⚙️ Attributes
    • socials (optional)
    • copy (optional)
    • link (optional)
    • currentPostLink (optional)
    • sharer (optional)
    • link_class (optional)
    • label (optional)
  • 🎨 Customization & Developer Hooks
    • 🔁 WordPress Filters
    • 📡 JavaScript Events
Join our newsletter

Add your email to stay up to date on features and new releases:

loader

  • Docs
  • Changelog
  • Privacy Policy
  • Terms of Service
  • Cookies Settings
  • Docs
  • Changelog
  • Privacy Policy
  • Terms of Service
  • Cookies Settings