Menu
All plugins

Share Buttons for Bricks

A Bricks element with share and copy-link buttons. No third-party scripts, no tracking pixels. On phones the Share button opens the phone’s own share menu, which lists every app the visitor has.

Version: 0.1.0   Demo: Share Buttons demo

Adding it

Add the Share Buttons element from the General group. It shares the current page unless you give it another link.

Buttons

The Buttons repeater sets which buttons show and in what order. Each can have its own label, icon and UTM tags.

  • Share: the phone share sheet. It only appears where the browser supports it.
  • Copy link: copies the link and shows your text (Link copied by default) for a moment.
  • Facebook, X, LinkedIn, WhatsApp, Email, Text message, Print.
  • Any other network: give a link template using {url}, {title} and {text}, for example https://bsky.app/intent/compose?text={title}%20{url}. Values are encoded for you.

What is shared

  • Link to share, Title and Message: all accept dynamic data, so inside a query loop or an ACF repeater each item can share its own address.
  • UTM tags: adds utm_source (the network), utm_medium=social and your campaign name. The copied link gets utm_medium=copy.

Layout

  • Style: pills with labels, solid pills, icon squares, icon circles, text links.
  • Size, alignment, direction (row or stacked), gap, and an option to make the buttons share the width equally.
  • Hide labels at: in a space this wide or narrower the buttons show only icons. It measures the element’s own space, not the screen.

Behaviour

  • Phone share sheet: show the Share button alongside the others, use it instead of them, or never show it.
  • Open networks in a small window or a new tab.
  • Send share events: fires an sbfb:share event on the element and pushes a share event to dataLayer, for Google Tag Manager.

Style

Background, text, border, hover and copied colours, border width, corner radius, side padding, heading colour, and an option to use each network’s own colour on hover.

Using it in a loop, including an ACF repeater

Put the element inside a looped block and set Link to share and Title with dynamic data, such as https://bricks-playground.co.uk/docs/share-buttons/ and Share Buttons for Bricks, or an ACF repeater sub-field tag.