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 Button

158 sites Security covered Drupal 8–11 Whatsapp ecosystem
View on drupal.org

This module adds a configurable block to your Drupal site that provides a one-click button for users to start a WhatsApp conversation. You can customize the contact number, the pre-filled message, the button's icon, and its positioning on different screen sizes.

The WhatsApp Button module allows you to add a configurable block anywhere on your site, enabling quick and direct access to WhatsApp. With just one click, users can instantly start a conversation.

Key Features

  • Customizable contact number: Set the WhatsApp number where conversations will be directed.
  • Predefined message customization: Configure an automatic message that loads upon opening the chat, so users only need to send it.
  • Icon customization: Replace the default icon with a custom image to match your site's design.
  • Flexible positioning with CSS and media queries: Adjust the button’s position on different screen sizes to fit your layout needs.

Installation

  1. Run the following command to install the module:
    composer require 'drupal/whatsapp_button:^1.0'
  2. Go to /admin/structure/block in your site's address bar.
  3. Locate and place the WhatsApp Button block in your desired region.
  4. In the block settings, disable the "Display title" option and click "Save Block."

Customization

The WhatsApp Button functions like any other block. To edit it, hover over the contextual link and click "Edit."

On the block configuration page, you can modify multiple settings:

Text Information
Customize the message displayed on the WhatsApp page, add text next to the icon, and define a tooltip.
Image Settings
Replace the default icon with a custom image.
Define the image width using px (recommended), em, %, or any other CSS unit.
Set different image widths for tablets and desktops (mobile uses the default size).
Position Settings
Adjust the button’s position from the bottom and right of the screen.
Media Queries
Customize media query breakpoints to control how the button behaves across different devices.

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
Feb 2025
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 3
Maintenance
Dormant

Release Timeline

Releases

Version Type Core Release date
1.0.4 Stable 8–11 Jul 12, 2025
1.0.1 Stable 8–11 Feb 21, 2025
1.0.x-dev Dev 8–11 Feb 14, 2025