WhatsApp Chat Button for Divi 5 Documentation
This plugin adds three modules to the Divi 5 Visual Builder: WhatsApp Chat, WhatsApp Button and Opening Hours. It needs Divi 5, WordPress 6.3 or later and PHP 7.4 or later. Divi 4 is not supported.

Installation
- In WordPress go to Plugins → Add New → Upload Plugin, choose
chat-button-for-divi.zipand activate it. - Open a page in the Divi Visual Builder. To show the button on every page, open the Theme Builder and edit the global footer instead.
- Add the WhatsApp Chat module and enter your WhatsApp number in international format, for example +44 7700 900123.
- Adjust the window, questions, consent, call and email buttons and opening hours, then save.
The floating button sits in the corner of the screen wherever the module is placed on the page. When a page has more than one WhatsApp Chat module, only the first one is shown.
WhatsApp Chat module
WhatsApp: your number and the start message written into WhatsApp. The start message can use {SITE}, {TITLE}, {URL}, {SOURCE}, {UTM_SOURCE} and {UTM_CAMPAIGN}.
Chat Window: switch the window off to send visitors straight to WhatsApp. Title, subtitle, a logo or photo, greeting messages (one per line; a line with only --- separates multi-line messages; *bold* and _italic_ work), one message at random, the button text, a QR code on desktop, and opening by itself after a number of seconds, once per visit.
Questions Before WhatsApp: up to three questions, as short text or as choices (one choice per line), each optional or required. The answers are written into the WhatsApp message as Question: answer. Nothing is stored.
Consent: a checkbox above the WhatsApp button. Write a link as [link text](https://…). It can be required before WhatsApp opens.
Call And Email: a phone number for a call button and an email address for an email button. The email button opens the visitor's email app with the same message and answers. You can also add the visit source (the ad campaign or website the visitor came from) to the end of the message.
Opening Hours: weekly hours, closed dates and the message shown when you are closed; the next opening time is added to it. The button keeps working outside opening hours.
Floating Button: bottom right or bottom left, distance from the side and bottom, appear after a delay or after scrolling part of the page, a label for screen readers that can also be shown next to the button, the ring animation and a notification badge.
Analytics Events: events for Google Analytics 4, Google Tag Manager, Meta Pixel and a Google Ads conversion. They are only sent to tags that are already on your page, so your cookie banner stays in control.
Design tab: chat window background, border and shadow; window header background; title and subtitle text; message text and bubbles; the WhatsApp button inside the window. Advanced → Visibility hides the module on phones, tablets or desktops.
WhatsApp Button module
An inline button for any column. Set the text and alignment, and choose what it does: open the WhatsApp Chat window on the same page, or go straight to WhatsApp. Without its own number and message it uses those of the WhatsApp Chat module on the page. The Design tab styles the text, background, border, shadow and spacing.
Opening Hours module
A weekly table with an optional Open now / Closed now badge. Write each day as 09:00-18:00, or 09:00-13:00, 14:00-18:00 for a break, and leave a day empty when you are closed. Times use the time zone under Settings → General. Today's row is highlighted. The badge is worked out in the visitor's browser, so it stays correct on cached pages.
Opening the chat from your own button
Give any link or button the CSS class wpdc-open, or link it to #whatsapp. The class wpdc-direct goes straight to WhatsApp; add data-message="…" for a different start message. A page address ending in #whatsapp opens the window when the page loads.
Privacy
The plugin sets no cookies and contacts no outside service. The visitor's answers only go into the WhatsApp or email message the visitor sends; nothing is saved on your site. The visit source and whether the window was already shown are kept in the browser's session storage for that tab only.
Changelog
1.0.0 – 17 October 2026
First release: WhatsApp Chat, WhatsApp Button and Opening Hours modules for Divi 5.
Support
Questions or problems: hello@egedijital.com.