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

Last updated by ryanT-10 2 months, 2 weeks ago.

Assigned support staff: Rajeeb Banstola.

Author Posts
August 7, 2019 at 9:19 pm

ryanT-10

I am trying to:
Translate a string - a custom HTML code block in WPBakery. It is translated in WordPress admin panel but appears in its original version on the public page in different language versions
Link to a page where the issue can be seen:
hidden link
I expected to see:
Content of the blocks with teddy bears to be translated to Chinese
Instead, I got:
Content of the blocks with teddy bears still appear in English language

August 7, 2019 at 11:11 pm
August 7, 2019 at 11:38 pm #4358585

Rajeeb Banstola

Hi,

Thank you for contacting WPML Support!

I see that you have added content in Raw HTML widget and translated the string with String Translation. In order to translate page builder content, you need to first make it translateable using WPML config file and translate using Classic/Advanced Translation Editor.

Please go to WPML - Settings - Custom XML Configuration and add the below code before </shortcodes>

<shortcode>
    <tag encoding="base64">vc_raw_html</tag>
</shortcode>

Now go to the English version of the page and do some minor changes like spacing. Then use the sidebar option to translate content to Chinese.

Now in classic editor, you will see the HTML you would have to translate for other languages.

Give it a try and let me know if you have any questions!

August 8, 2019 at 4:05 pm #4364637

ryanT-10

My issue is resolved now. Thank you!