Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
The client is experiencing an issue where the styling of emails sent from Contact Form 7 in Russian and Latvian languages differs from the original styling in English.

Solution:
First, we recommend updating the WPML plugin to the latest version (4.6.10) and its add-ons to ensure you have all the latest bug fixes and improvements. You can find the latest versions in the "My Account -> Downloads" section on the WPML site. Please follow the instructions to update here: http://wpml.org/faq/install-wpml/. Remember to backup your database before proceeding. For more information on compatibility and usage of Contact Form 7 with WPML, visit:

If the issue persists after updating, please try the following workaround:
1. Go to the edit screen of the form.
2. Switch to the second language and navigate to the "Mail" tab.
3. Remove the string

<!-- -->wpcodeself<!-- -->

from the "Message Body" field.
4. Save the changes.

If the solution provided here is not relevant due to being outdated or not applicable to your case, we highly recommend checking the related known issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. Should you need further assistance, please do not hesitate to open a new support ticket. You can do so here: WPML support forum.

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

This topic contains 7 replies, has 2 voices.

Last updated by Andrey 9 months, 2 weeks ago.

Assisted by: Andrey.

Author Posts
April 9, 2024 at 12:28 pm #15499157

nikitaS-7

Hello!

We are using WPML on our website.
Recently, we have installed Contact Form 7 and started using it on our website.

We have successfully translated everything to Russian and Latvian languages, but have encountered one problem — styling in translated emails do differ from original styling in English language.

I have attached both original and translated email.

Also, you can check it yourselves by visiting our home page in different languages and submitting your contact information trough the CF7 form.

Furthermore, I want to say that CF7 emails are not the only emails on our website, but other emails we send work perfectly properly (WooCommerce emails).

Thank you!

Best regards,
Volodia

dsfsdfsdf.png
sdfsdfsdf.png
April 9, 2024 at 1:57 pm #15499582

Andrey
Supporter

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+02:00)

Thank you for contacting WPML support.

Could you please update your WPML plugin to the latest version 4.6.10 and add-ons to benefit from the latest bug fixes and improvements? This may not necessarily resolve your problem, however, in order to troubleshoot the issue best we need to work on the latest code available.

You can check the latest released versions under "My Account -> Downloads" on this site. Instructions to update can be found here: http://wpml.org/faq/install-wpml/

Please remember to backup your database first before you proceed.

More information:
https://wpml.org/compatibility/2019/02/announcing-contact-form-7-ml/
https://wpml.org/documentation/related-projects/using-contact-form-7-with-wpml/

Let me know if the issue persists after an update has been done. Does it also happen with only WPML and Contact Form 7 plugins enabled?

April 9, 2024 at 6:34 pm #15501015

nikitaS-7

Hello!

I have updated plugin, the issues persists.

Yes, the problem occurs only in emails send by Contact Form 7.

Best regards,
Volodia

April 9, 2024 at 6:50 pm #15501052

Andrey
Supporter

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+02:00)

Can I kindly ask you to help me replicate the issue? I added a link to a staging site in the following private message.

April 10, 2024 at 5:34 pm #15505994

nikitaS-7

Hello!

I have replicated issue.

Since website you send cannot send emails, I have installed email log plugin.

You can visit page hidden link (English) and hidden link (Latvian).

You will see that email send in Latvian differ in styling from email send in English.

Email logs are accessible in admin dashboard in the first big button block.

Best regards,
Vladimir

April 10, 2024 at 8:26 pm #15506426

Andrey
Supporter

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+02:00)

Thanks a lot for the update! I have reported the issue, and I will keep you posted.

April 22, 2024 at 1:03 pm #15550599

Andrey
Supporter

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+02:00)

As previously mentioned, the issue has been reported to our development team. Unfortunately, I currently do not have any workarounds for the problem. I will keep you updated on any news regarding a resolution, although I do not have an estimated date.

April 23, 2024 at 6:53 am #15553705

Andrey
Supporter

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+02:00)

Thank you for your patience. To resolve the issue, please follow the steps below to apply workaround:

1. Go to the edit screen of the form.
2. Switch to the second language and navigate to the "Mail" tab.
3. Remove the string "<!-- -->wpcodeself<!-- -->" from the "Message Body" field.
4. Save the changes.

Edit-Contact-Form-‹-Sandbox-—-WordPress.png