Add Chat App Button

描述

The Add Chat App Button plugin enables adding a customizable click-to-chat WhatsApp button.
The plugin lets you choose between a simple WhatsApp icon and a rectangle with a custom text label (see screenshots).

Usage

To enable the WhatsApp button, check the first checkbox in the settings page. You will find the settings page in the admin dashboard menu, under Settings->Add Chat App Button.

You must enter an international phone number (only numbers, NO plus sign (+), NO dashes(-)) in order to enable the WhatsApp button. Even if you manage to save settings into the database without entering a phone number, your button might not work properly.

The plugin settings page has two tabs: “General Settings” and “Button Design”.

The General Settings tab includes options such as limiting the button to only display under a certain screen resolution (in pixels), attaching a default message that will be populated in the user’s phone when they click the button, and more.

The Button Design tab includes controls for the button color, label text color, button type (side-bearing rectangle, WhatsApp icon, fixed-bottom button), and more. The Button Design tab also includes a smartphone mockup with a live preview screen, enabling you to see a real-time (estimated) rendering of how your button would look, on the fly, as you are changing its design.

The plugin detects whether the site visitor is using a desktop or mobile device and serves a different link for each accordingly.

螢幕截圖

  • The "General Settings" tab in the plugin settings page
  • The "Button Design" tab in the plugin settings page
  • An example of the side-floating rectangle button design. You can customize the text on the button, as well as the button's background and text colors, in the "Button Design" tab.
  • An example of the plain WhatsApp icon that can be used as the floating button

安裝

  1. Upload the plugin files (the contents of add-whatsapp-button.zip) to the /wp-content/plugins/add-whatsapp-button directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the ‘Plugins’ screen in WordPress
  3. On the WordPress Admin menu, go to Settings->Add Chat App Button to configure the plugin

常見問題

I see there is a setting for limiting the display hours for the WhatsApp button. What timezone does the plugin use for this setting?

Add Chat App Button uses Javascript to check the time on the client’s device. So it will be displayed/hidden according to the set time in each client’s timezone.

評價

2022年6月16日
It's very easy to use and does what it should.
2022年3月14日
be better to have options about radius and have icon beside text in style tnx
2022年1月14日
So simple to set up but makes a huge difference to the webpage visitor. Thank you.
2020年12月15日
Just perfect, simple and easy to configure. Five stars.
閱讀全部11個評價

貢獻者及開發者

“Add Chat App Button” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

Add Chat App Button 外掛目前已有 1 個本地化語言版本。 感謝所有譯者為這個外掛做出的貢獻。

將 Add Chat App Button 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

修改日誌

2.0.5

  • Updated compatibility with WordPress 6.0

2.0.3

  • Updated compatibility with WordPress 5.9

2.0.2

  • Updated compatibility with WordPress 5.8.2

2.0.0

  • Complete PHP rewrite to use OOP and scoped methods instead of global functions.
  • Bug fixes
  • Updated compatibility with WordPress 5.8.0

1.2.1

  • Bug fixes

1.2

  • Changed plugin display name to comply with Facebook’s trademark requirements
  • Updated support for WordPress 5.2.3

1.1.3

  • Some bug fixes

1.1.1

  • Updated support for WordPress 5.2

1.1.0

  • Updated compatibility with WordPress 5.1.1
  • Added a “Hide Button” option to the WhatsApp button. It adds a small button on the corner of the WhatsApp button that enables site visitors to hide the WhatsApp button if it bothers them. The “Hide Button” has two options:
    • Full Remove: Completely remove the button from the page
    • Hide with Toggle Button: Slides the WhatsApp button to the side (outside page boundaries). This enables the site visitor to un-hide the WhatsApp button later, if they want.

1.0.4

  • Updated compatibility with WordPress 5.1
  • Minor bug fixes

1.0.3

  • Updated compatibility with WordPress 5.0
  • Minor bug fixes

1.0.2

  • Minor bug fixes

1.0.1

  • Fixed a bug with identification of the User Agent in Apple mobile devices