Thank you for purchasing WhatsApp Click to Chat plugin for WordPress. This document explains the features of the plugin and how to use them. If you have any questions that are beyond the scope of this help file, please feel free to email via my email address.

Quick Overview

This plugin displays a list of WhatsApp accounts on your site which when clicked, will take the user to that particular account on https://web.whatsapp.com/.

Installation

Installing the plugin can be done in two ways:

Either step above only install the plugin. You also need to activate the plugin in order for it to work. Go to Plugin > Installed Plugins and you'll find the WhatsApp Click to Chat listed in a row. Click the Activate link to activate the plugin.

Now that you have the plugin activated, you can start adjusting the settings.

Settings

To manage your settings, go to WhatsApp Click.

In the settings page, you will find a form divided into the following 4 sections:

1. Display Settings

The fields on this section can be used to adjust the following style:

  1. Toggle Text, Toggle Text Color, and Toggle Background Color will affect the toggle part in the area number 1. Note that leaving Toggle Text empty will make the toggle round.
  2. Description text will fill the area number 2. Note that the style for the toggle will also be used to style this description area.
  3. Container Text Color and Container Background Color will style the area number 3.
  4. Account Item Background Color on Hover will style the area number 4.
  5. Container Maximum Width will set the limit on how wide the box can be. The box is responsive; so if the user's screen is narrower that the maximum width, it will use the available space.

Load-In Settings

You can set the auto-display of the box in three condition:

Note that each condition above only work when the WhatsApp box hasn't been displayed before. Meaning that if users click the toggle before it's time to auto-display the box, then the auto-display won't work at all.

Page Targeting

By using page targeting, you can set which page the WhatsApp box should or shouldn't be displayed on your site.

WhatsApp Accounts

To add an account, click the Add Account button like in the following screenshot:

Which will then populate the area with some empty fields:

Other than Page Targeting, the plugin also check for the availability of each account. If the Page Targeting is all checked but none of the account is available for a particular time and day, then the WhatsApp box will not be displayed.

Once you have done with the settings, click the Save Changes button then go to the front-end side of your site. You should see the WhatsApp toggle on the bottom right side.

Using Shortcode

You can also display a link which when clicked will open WhatsApp chat by using a [whatsapp] shortcode which accepts the following attributes:

And the text between the [whatsapp]...[/whatsapp] tags will be used as the button's text, like the follwing example:

[whatsapp number="6281572276572" background_color="#3a589e"  text_color="white" background_color_on_hover="#25D366" auto_text="Hello..." icon="no" display="block"]A full width chat button with no icon[/whatsapp]

Translation

To make a translation for this plugin, you'll need a gettext catalog editor, and Poedit is one of them. Install the software and follow the steps below:

  1. In the unzipped plugin files, open the folder languages and find a wptwa.pot file. Open the file using Poedit and you'll see a notification like the following:

    Click the "Create new translation" button and choose the language you're going to translate the plugin to, then save the file. Now you should have a .mo and a .po files inside the languages folder.

  2. Change the .mo and .po file names so that they have a wptwa- prefix. The use of a prefix is required by WordPress and wptwa is the text-domain that I use for this plugin. For example, if you are translating the plugin to French, the file name should be wptwa-fr_FR.mo and wptwa-fr_FR.po.

  3. Open the renamed .po file using Poedit, start translating, and save.

    1. The current selected text. This is where you choose which text to translate.
    2. The complete text of the selected one.
    3. The textarea where you set the translation of the selected text.
  4. Go to Settings > General and you'll find the Site Language options. Choose your language and save changes.

And now the plugin should use your translation.