[Resolved] Contact form 7 placeholder cannot translate
This thread is resolved. Here is a description of the problem and solution.
Problem: You are trying to translate the placeholder text in Contact Form 7 using WPML, but the placeholder does not appear on the translation page as expected. Solution: If you're experiencing this issue, we recommend checking the syntax used for your placeholders. Contact Form 7 requires double quotes for placeholder text. For example, if your form code looks like this:
[text* yourname placeholder 'YOUR NAME*']
You should update it to:
[text* yourname placeholder "YOUR NAME*"]
After updating, retranslate the form. This should resolve the issue and the translated placeholder should appear correctly on the frontend.
Please note that this solution might be irrelevant if it's outdated or not applicable to your case. We highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the issue persists, please open a new support ticket at 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.
Thank you for contacting WPML Support. Could you please try to follow the below steps and let me know how it goes:
1. Please make sure to Install/activate the Contact Form 7 Multilingual plugin on your site which is required, if the WPML is registered properly then you should be able to install it from Plugins >> Add New Plugin > Commercial tab page, or directly download it from here: https://wpml.org/download/contact-form-7-multilingual/
Thanks for providing the debug info and additional details. I can see the issue on this page: hidden link
I tried to replicate this issue at my test site but it works correctly there as you can see in the attached screenshots. To take a closer look at this issue, please provide temporary access (WP-Admin and FTP Login info) to your site (preferably staging site), so that I can look into your setup and debug the issue.
Your next answer will be private, meaning only you and I can access it.
=== Please backup your database and website ===
✙ I would need your permission to deactivate and reactivate Plugins and the Theme and to change configurations on the site. This is also a reason the backup is essential.
Thanks for providing the login details. I noticed that Contact Form 7 requires double quotes for placeholder text, but the form was using single quotes, which caused the issue.
I updated it from:
[text* yourname placeholder 'YOUR NAME*']
to:
[text* yourname placeholder "YOUR NAME*"]
Then I retranslated the form, and now the translation appears correctly on the frontend. Could you please check and confirm if the placeholder translation issue is resolved?