• Resolved igorneumann

    (@igorneumann)


    We have a multilanguage website and I wonder if I can make the telephone number and online time as translatable so each region can have its own chat agent.

    Best Regards,
    Igor

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Thread Starter igorneumann

    (@igorneumann)

    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.
Viewing 1 replies (of 1 total)

The topic ‘WPML translation?’ is closed to new replies.