Skip Navigation

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

Problem:
The client is using the Advanced Google reCAPTCHA plugin to protect the comments form used as a 'contact us' form on their multilingual site. While reCAPTCHA works on the default language, it does not function on other language domains.
Solution:
1. Ensure that all domains are registered with Google reCAPTCHA to handle different keys for each language. This can be managed through the reCAPTCHA settings on Google's website.
2. To maintain the same contact form across all languages without registering multiple domains, the client opted to use custom links pointing to the English 'contact us' page and set translations of the page to draft. This approach avoids the need for multiple reCAPTCHA domain registrations.
3. If using a contact form plugin like Contact Form 7, ensure compatibility with WPML by using the appropriate addon. More information can be found here: Using Contact Form 7 with WPML
4. Adjust the navigation menu for different languages to point to the unified English contact page. Instructions for translating menus can be found here: Translating Menus

If this solution does not resolve your issue or seems outdated, please check related known issues at https://wpml.org/known-issues/, verify you have the latest versions of themes and plugins, and consider opening 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.

This topic contains 3 replies, has 0 voices.

Last updated by bernhardG-5 2 weeks, 1 day ago.

Assisted by: Dražen.

Author Posts
June 1, 2025 at 9:40 pm #17095941

bernhardG-5

Background of the issue:
I'm protecting the comments form with reCAPTCHA using the Advanced Google reCAPTCHA plugin on my site hidden link. It works on the default language but not on the other language domains. I want to use the comments form as a 'contact us' form and use the same contact form for all languages.

Symptoms:
reCAPTCHA works on the default language but not on other language domains.

Questions:
How can I register all domains on Google reCAPTCHA and insert the different keys?
How can I handle using the same contact form for all languages in the navigation menu? (preferred solution)

June 2, 2025 at 6:26 am #17096362

Dražen
Supporter

Languages: English (English )

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

Hello,

1)  In order to expedite handling your support requests, can you please share WPML support debug information from your site.

- To give debug information, login to your site and go to WPML → Support. From there click on the “debug information” link at the bottom of the page.
- Once on the “debug information” page, select the entire content of the text box and copy it.
- Now go back to our support forum, find debug information box and paste it.

More information on the link: https://wpml.org/faq/provide-debug-information-faster-support/

2) It is difficult to say, since I am not sure what plugin you are using and if it supports WPML. But if you use Contact form 7 pliugin and our addon plugin for it, it should work fine.

- https://wpml.org/documentation/related-projects/using-contact-form-7-with-wpml/

Please try and let me know if any doubts.

Regards,
Drazen

June 3, 2025 at 3:19 pm #17103044

bernhardG-5

Hello,
1) I don't see the debug information box where to share the information.
2) I don't use a plugin but the wordpress "discussion" function. "Discussion" is only active on the hidden link page and their translations. On all other pages "discussion" is disabled. As you can see, reCaptcha shows an error for the tranlated pages. Would it be possible to point in the navigation menu the "contact us" item for all languages to the English page? Or to show all translated "contact us" pages under the primary domain?
Regards,
Bernhard

June 3, 2025 at 3:29 pm #17103112

Dražen
Supporter

Languages: English (English )

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

Hello Bernhard,

thanks for getting back.

1) How are you adding captcha to your website? Via some plugin, code or?

2) Since captcha is being added from Google and restricted by domain, I think you need to add other domains also inside your captcha settings.

If you disable WPML plugin and visit other domains for same page, does the captcha works? I would assume not, which indicates it is not an WPML issue, but you would need to find a way to add other domains to you captcha settings. I think that is possible from captcha Google settings page.

3) Yes, you can adjust menu in different languages and add menu links how you wish.

- https://wpml.org/documentation/getting-started-guide/translating-menus/#translate-menus-different-per-language

Hope this helps.

Regards,
Drazen

June 4, 2025 at 6:31 pm #17107917

bernhardG-5

Hello,
as explained before adding other domains to recaptcha is not my preferred solution. I solved now using custom links and setting the translations of the page to draft. The plugin used is Advanced Google reCAPTCHA
Cheers,
Bernhard