First you need to install, activate and configure WAme.
After that, global WAme settings can be translated with WPML String Translation module and WAme settings at page level can be transalated on every language page.
NOTE: by default global phone number it’s not translatable. You can add it to WPML translations strings with this code:
add_filter( 'whatsappme_settings_i18n', function($settings){
$settings['telephone'] = 'Telephone';
return $settings;
} );
-
This reply was modified 6 years, 3 months ago by
Pacotole.
Hello Pacotole, so very sorry not to get back to you sooner to thank you SOOOOOOOO much for all your help. It’s been super busy here and I have only just returned to this to solve the problem. Thanks to you and your help, I have this working now!
The only part I didn’t understand is the default global phone number.
For now, we have one phone number for English and Spanish for now, but ideally we would like to have two numbers. I am not sure where or how I can add this code above in WPML. Could you possibly give me a little bit more explanation?
Many thanks again.
Hi!
You need to add the previous php code in your theme functions.php file.
Another option is to use a plugin like Code Snippets and add a new snippet with the code that “Run everywhere”.
With code added you need to save WAme settings to register the new “Telephone” string and now phone number will be among the strings for translation.