Skip to content Skip to sidebar

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 1 reply, has 2 voices.

Last updated by Waqar Ali 1 year, 3 months ago.

Assisted by: Waqar Ali.

Author Posts
May 22, 2024 at 10:52 pm #15659900

robN-12

Goal: Trying to translate hubspot forms in WordPress

A previous solutions is not working since Hubspot is not support shortcodes anymore

Now they use this to embed a form into WordPress, but with this i cannot translate the default formId into the language corresponding formid.
( i have different forms with unique form id's per language)

Is there another way to translate hubspot forms in WordPress?

<script charset="utf-8" type="text/javascript" src="//js-eu1.hsforms.net/forms/embed/v2.js"></script>
<script>
hbspt.forms.create({
region: "eu1",
portalId: "143915864",
formId: "8987aad5-1624-41d5-8744-78da226843d4"
});
</script>

translate issue.jpg
May 23, 2024 at 7:54 am #15660880

Waqar Ali

Hi,

Thank you for contacting us and I'd be happy to assist.

> A previous solutions is not working since Hubspot is not support shortcodes anymore
> Now they use this to embed a form into WordPress, but with this i cannot translate the default formId into the language corresponding formed.

- I've performed some research and the shortcode method should still work, even if you're using the Gutenberg editor.

The embed script code is used if you're using the Gutenberg block for the HubSpot forms.

You can remove that block and instead use the form shortcode, as explained in this guide from HubSpot:
hidden link

After that, you'll be able to translate the form as part of the page's content:
https://wpml.org/documentation/plugins-compatibility/integrating-hubspot-with-multilingual-sites-that-use-wpml/

I hope this helps and please let me know if you need further assistance.

regards,
Waqar