Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: OpenID Connect / OAuth client 3.0.0-alpha9 New alpha version released for module openid_connect (3.0.0-alpha9). Usage Milestone: Google Analytics Module google_analytics crossed 1,000 active installs. Release: Timelinr 1.0.1 Minor update available for module timelinr (1.0.1). Release: GraphQL Compose Codegen 1.1.2 Minor update available for module graphql_compose_codegen (1.1.2). Release: Mapy.com 1.1.3 Minor update available for module mapycom (1.1.3). Release: Ckeditor5 entity browser 3.0.3 Minor update available for module ckeditor5_entity_browser (3.0.3). Release: Ckeditor5 entity browser 3.0.1 Minor update available for module ckeditor5_entity_browser (3.0.1). Release: Ckeditor5 entity browser 3.0.2 Minor update available for module ckeditor5_entity_browser (3.0.2). Release: Teamleader Integration 4.0.2 Minor update available for module teamleader (4.0.2). Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

Whatsapp Bubble

276 sites No security coverage Drupal 10–11 Whatsapp ecosystem
View on drupal.org

This module adds a customizable WhatsApp contact button to your Drupal site, either as a floating bubble or a block. You can configure the phone number, message, alignment, and color, with options to override settings on a per-block basis.

Description

Whatsapp Bubble provides a lightweight way to add a WhatsApp contact entry point to your Drupal site. It supports:
- A floating WhatsApp bubble auto-injected on non-admin pages.
- A “Whatsapp Bubble” block that renders the same bubble via block placement.
- A “Whatsapp Button” block variant with a label (e.g., “Escríbenos a”).
- Per-block phone number overrides so different sections can link to different numbers.

Both the floating bubble and blocks use the same theme and library so they look consistent and are easy to style.

Installation

1) Enable the module: Extend → Whatsapp Bubble.
2) Clear caches if needed: drush cr.

Configuration (Global)

Path: /admin/config/services/whatsapp-bubble

Settings:
- Enable floating bubble: When enabled, the module injects the WhatsApp bubble at the bottom of all non-admin pages. Useful when you are not using the block, or to temporarily hide the bubble.
- Alignment: Horizontal alignment for the bubble (left, center, right).
- Vertical alignment: Vertical alignment (top, middle, bottom).
- Phone Number: Destination WhatsApp number (E.164 format recommended).
- Message: Default message prefilled in the WhatsApp chat.
- Inverse color: Swap colors (green background with white icon).

Blocks

Whatsapp Bubble block:

  • Renders the same floating bubble via block placement.
  • If the global floating bubble is enabled, the block configuration form shows a warning and links to the global settings. Disable the global bubble to avoid rendering two bubbles on the same page.
  • Supports per-block phone override.

Whatsapp Button block:

  • Button-style variant with a small text label displayed above “WhatsApp”.
  • Supports per-block phone override.
  • Small text label is configurable on the block form.

Per-block phone override

Both blocks can override the global phone number:
1) Edit the block.
2) Check “Override phone number for this block”.
3) Enter the desired number. If left empty or override is disabled, the global number is used.

Theming & Assets

  • Templates: templates/wab.html.twig (bubble), templates/wab-button.html.twig (button).
  • Library: whatsapp_bubble/main provides the CSS for both renderings.
  • Common CSS classes: “whatsapp-bubble”, plus alignment classes (“left”/“center”/“right”, “top”/“middle”/“bottom”) and “inverse” when the inverse color option is enabled.

Caching

  • Render arrays include cache tag: config:whatsapp_bubble.config. Configuration changes automatically invalidate the output.

Notes

  • Global bubble does not render on admin routes.
  • To avoid duplicates, either disable the global bubble or do not place the Whatsapp Bubble block.

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
3
Tracked since
Sep 2025
Latest release
11 months ago
Releases (12 mo)
3 ▲ from 0
Maintenance
Slowing

Release Timeline

Releases

Version Type Core Release date
1.0.2 Stable 10–11 Sep 24, 2025
1.0.1 Stable 10–11 Sep 3, 2025
1.0.0 Stable 8–9 Sep 3, 2025