Follow

How to translate Contact Form

In order to translate Contact form you should:
1. Edit file section-contacts.php. It lays in menu Appearance -> Editor. If you use child theme, do it in it.
Replace this part of code

do_shortcode($smof_data['email']);

with this one

do_shortcode(__($smof_data['email']));


2. Create new contact form in language you need and copy its shortcode.

3. Go to menu WPML-> String Translations, rescan strings. Then new string will appear. Translate it (you just need to paste the shortcode of new contact form.




Save changes.

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.
Powered by Zendesk