Found the solution…
1 – In WPML settings, in POst type translation, set “WhatsApp Accounts” as translateable
/wp-admin/admin.php?page=wpml-translation-management%2Fmenu%2Fsettings
2 – Open the account at the translation widget at the right and click to use WordPress editor to translate Whatsapp accounts… this way you can translate the telephone number, text and availability.
3 – Paste this code below in Custom XML configuration (the plugin developer could add it to a wpml-config.xml in the plugins root folder fopr next verions)
URL: /wp-admin/admin.php?page=wpml-translation-management%2Fmenu%2Fsettings&sm=custom-xml-config
————–code————–
<wpml-config>
<admin-texts>
<key name=”nta_whatsapp_setting”>
<key name=”widget_name”></key>
<key name=”widget_label”></key>
<key name=”widget_description”></key>
<key name=”widget_responseText”></key>
<key name=”show_on_desktop”></key>
<key name=”show_on_mobile”></key>
</key>
</admin-texts>
</wpml-config>
————–end code————–
4 (optional) – If you want to hide it in certain regions, create a Custom HTML widget without title and with this code:
—————–Code—————-
<style type = text/css>
div.wa__btn_popup {
display: none!important;
}
</style>
—————–End Code————
5 – Translate this widget leaving just a space and nothing else in the regions you do want Whatsapp chat.
Ps.: I couldn’t find any plugin doing this out of the box, and looks like isnt that much changes needed for this one to be the 1st multilingual whatsapp plugin.
-
This reply was modified 6 years, 9 months ago by
igorneumann.