Business · Gutenberg

Social Stats block for WordPress

Social media platform stats — display follower counts, subscriber milestones and engagement metrics with platform-branded icons (Instagram, YouTube, TikTok, LinkedIn, X/Twitter, Facebook, Pinterest).

Get Blockenberg

Free Gutenberg block in Blockenberg. The inspector controls and front-end behavior on this page come from this block’s source, not a shared stub.

Get Blockenberg

What it actually does

Social media platform stats — display follower counts, subscriber milestones and engagement metrics with platform-branded icons (Instagram, YouTube, TikTok, LinkedIn, X/Twitter, Facebook, Pinterest).

Inspector panels on this block: Platforms, Header, Layout & Display, Colours, Appearance. Those titles come from index.js, not from a shared template.

Behavior controls: “Card style” options: Card (white), Minimal (borderless), Colored fill.

Where to find it

Gutenberg inserter → Business → search “Social Stats” (block name `blockenberg/social-stats` in block.json). Style it in the sidebar after insert.

How to use Social Stats block for WordPress

  1. Install Blockenberg. Install from WordPress.org and activate the plugin.
  2. Insert the block. Edit a page, click +, search for “Social Stats”, insert it. Category: Business.
  3. Configure inspector controls that exist on this block. Open Platforms. Set “Platform”, “Handle / channel name”, “Primary metric label”, “Primary metric value”.
  4. Check the published page. The view script reads HTML data attributes: data-opts, data-platforms. The block editor preview may not run the same view script.

Inspector controls from this block’s code

ControlWhat the code does
PlatformSelect control; the chosen value is saved on the block.
Handle / channel nameText field in the inspector.
Primary metric labelText field in the inspector.
Primary metric valueText field in the inspector.
Secondary metric labelText field in the inspector.
Secondary metric valueText field in the inspector.
Profile URLText field in the inspector.
Show titleOn/off toggle in the inspector. On by default. Saved as `showTitle`.
Header — TitleText field in the inspector. block.json default: Follow Along. Saved as `title`.
Show subtitleOn/off toggle in the inspector. On by default. Saved as `showSubtitle`.
SubtitleText field in the inspector. block.json default: Join our growing community across every platform.. Saved as `subtitle`.
ColumnsNumeric range control in the inspector. Range 1–6. block.json default: 4. Saved as `columns`.
Card gap (px)Numeric range control in the inspector. Range 8–60. block.json default: 20. Saved as `gap`.
Card styleSelect control; the chosen value is saved on the block. Options: Card (white); Minimal (borderless); Colored fill. block.json default: card. Saved as `cardStyle`.
Use platform brand coloursOn/off toggle in the inspector. Off by default. Saved as `usePlatformColors`.
Show handle / channel nameOn/off toggle in the inspector. On by default. Saved as `showHandle`.
Show second metricOn/off toggle in the inspector. On by default. Saved as `showSecondMetric`.
Entrance animationOn/off toggle in the inspector. On by default. Saved as `animated`.
Icon size (px)Numeric range control in the inspector. Range 16–48. block.json default: 28. Saved as `iconSize`.
Card radius (px)Numeric range control in the inspector. Range 0–40. block.json default: 16. Saved as `cardRadius`.
Padding top (px)Numeric range control in the inspector. Range 0–200. block.json default: 60. Saved as `paddingTop`.
Padding bottom (px)Numeric range control in the inspector. Range 0–200. block.json default: 60. Saved as `paddingBottom`.

What the front-end script actually does

When this is the right block

Notes from the implementation

viewScript: this folder’s frontend.js is enqueued on the front end for this block.

FAQ

How do I add the Social Stats block in WordPress?

Install Blockenberg from WordPress.org, edit a page in the block editor, click +, and search for “Social Stats”. It sits under Business. After insert, open Platforms and set “Platform”, “Handle / channel name”, “Primary metric label”, “Primary metric value”.

Where do Social Stats submissions go?

The published page calls this block’s Blockenberg REST route (see front-end notes). The editor canvas does not send mail unless you preview on the front end.

Is the Social Stats Gutenberg block free?

Yes. Social Stats ships inside Blockenberg. Get the plugin from WordPress.org — no paid add-on is required for this block.

Can I style Social Stats to match my theme?

Yes. Blockenberg’s shared typography and color panels apply here, plus any block-specific style controls listed on this page (panels: Platforms, Header, Layout & Display, Colours).

Related business blocks

Get Blockenberg

Install Blockenberg from WordPress.org, then insert Social Stats from the Gutenberg inserter.

Get Blockenberg