Skip Navigation

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

Problem:
The client developed custom SiteOrigin widgets on a custom theme and configured the wpml-config.xml to translate widget content. However, the custom widget content is not translating, even though the page content is.
Solution:
We recommend updating your wpml-config.xml with the following XML code to make your widget compatible with WPML:

<wpml-config>
  <siteorigin-widgets>
    <widget name="SOW_Card_Widget">
      <fields>
        <field type="Title" editor_type="LINE">titulo</field>
        <field type="Content" editor_type="VISUAL">descripcion</field>
        <field type="Link Text" editor_type="LINE">section_link>label</field>
        <field type="Link Text" editor_type="LINK">section_link>url</field>
      </fields>
    </widget>
  </siteorigin-widgets>
</wpml-config>

You can use the following repository as a guide for your other widget compatibility codes:

Please note that this is considered a custom code request and is outside of our support scope. We did our best to show how it is done for one widget but we will not be able to provide code for other widgets. You are welcome to use the resources provided in the reply to find the correct code.

If this solution does not resolve your issue or seems irrelevant due to being outdated or not applicable to your case, we highly recommend checking related known issues at WPML Known Issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If further assistance is needed, 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.

Tagged: 

This topic contains 0 replies, has 0 voices.

Last updated by Christopher Amirian 4 weeks, 1 day ago.

Assisted by: Christopher Amirian.

Author Posts
March 6, 2025 at 3:25 pm

carlosA-72

Background of the issue:
I developed custom SiteOrigin widgets on a custom theme and configured the wpml-config.xml to translate widget content. The page content is translated, but the custom widget content is not. Link to a page where the issue can be seen: hidden link title description

Symptoms:
The custom widget content is not translated, even though the page content is.

Questions:
Why is the custom widget content not translating?
Is there an issue with my wpml-config.xml configuration?

March 6, 2025 at 4:34 pm
March 6, 2025 at 4:36 pm #16784695

Christopher Amirian
Supporter

Languages: English (English )

Timezone: Asia/Yerevan (GMT+04:00)

Hi,

Please get back to us with the steps mentioned din the chat and we will follow up with the issue.

Thanks,

March 6, 2025 at 8:06 pm #16785305

carlosA-72

I already uploaded the plugin with the custom widget and created a test page in sandbox.

March 9, 2025 at 2:01 pm #16793184

Christopher Amirian
Supporter

Languages: English (English )

Timezone: Asia/Yerevan (GMT+04:00)

Thank you. I reported this to the compatibility team. I will get back to you as soon as I have news or advice from them.

Thanks.

March 11, 2025 at 6:18 am #16799426

Christopher Amirian
Supporter

Languages: English (English )

Timezone: Asia/Yerevan (GMT+04:00)

Hi,

I have an answer from the compatibility team. Please use the XML code below to make your widget compatible with WPML:

<wpml-config>
  <siteorigin-widgets>
    <widget name="SOW_Card_Widget">
      <fields>
        <field type="Title" editor_type="LINE">titulo</field>
        <field type="Content" editor_type="VISUAL">descripcion</field>
        <field type="Link Text" editor_type="LINE">section_link>label</field>
        <field type="Link Text" editor_type="LINK">section_link>url</field>
      </fields>
    </widget>
  </siteorigin-widgets>
</wpml-config>

You can check the result on the test page of the clean installation below:
hidden link

You can use the repository below as a guide for your other widget compatibility codes:

hidden link

Please note that this is considered a custom code request and is outside of our support scope. We did our best to show how it is done for one widget but we will not be able to provide code for other widgets. You are welcome to use the resources provided int he reply to find the correct code.

Thank you.