Skip Navigation

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 bjornL-7 1 year, 10 months ago.

Author Posts
January 13, 2023 at 2:36 pm #12814423

bjornL-7

I want to know how the best way is to translate a widget that contains both php, js and html code.

I have a "widgets on pages" "php code" widget that looks like the attached screenshot.
Can't seem to figure it out.

Thanks for your help.

Screenshot 2023-01-13 153148.png
January 13, 2023 at 3:38 pm #12814933

Andreas

Hi,

before your ticket is assigned to one of my colleagues, please allow me to walk you through some initial debugging steps. This will help speed up the support process.

From your image, the only way I can think is the normal way to translate widgets.

So find the content of the widgets and right it again in another language.

Please read our documentation here :

https://wpml.org/documentation/getting-started-guide/translating-widgets/

Regards,
Andreas