Drupal is a registered trademark of Dries Buytaert
drupal 11.3.7 Update released for Drupal core (11.3.7)! drupal 11.2.11 Update released for Drupal core (11.2.11)! drupal 10.6.7 Update released for Drupal core (10.6.7)! drupal 10.5.9 Update released for Drupal core (10.5.9)! cms 2.1.1 Update released for Drupal core (2.1.1)! drupal 11.3.6 Update released for Drupal core (11.3.6)! drupal 10.6.6 Update released for Drupal core (10.6.6)! cms 2.1.0 Update released for Drupal core (2.1.0)! bootstrap 8.x-3.40 Minor update available for theme bootstrap (8.x-3.40). menu_link_attributes 8.x-1.7 Minor update available for module menu_link_attributes (8.x-1.7). eca 3.1.1 Minor update available for module eca (3.1.1). layout_paragraphs 2.1.3 Minor update available for module layout_paragraphs (2.1.3). ai 1.3.3 Minor update available for module ai (1.3.3). ai 1.2.14 Minor update available for module ai (1.2.14). node_revision_delete 2.0.3 Minor update available for module node_revision_delete (2.0.3). moderated_content_bulk_publish 2.0.52 Minor update available for module moderated_content_bulk_publish (2.0.52). klaro 3.0.10 Minor update available for module klaro (3.0.10). klaro 3.0.9 Minor update available for module klaro (3.0.9). layout_paragraphs 2.1.2 Minor update available for module layout_paragraphs (2.1.2). geofield_map 11.1.8 Minor update available for module geofield_map (11.1.8).

whatsapp_bubble

281 sites No security coverage
View on drupal.org

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.

Activity

Total releases
3
First release
Sep 2025
Latest release
6 months ago
Release cadence
11 days
Stability
100% stable

Release Timeline

Releases

Version Type Release date
1.0.2 Stable Sep 24, 2025
1.0.1 Stable Sep 3, 2025
1.0.0 Stable Sep 3, 2025