Translating theme widgets such as animated headline or text button

This topic has 2 replies, 1 voice, and was last updated 2 years, 3 months ago ago by Behrang

  • Avatar: Behrang
    Behrang
    Participant
    August 11, 2022 at 18:42

    Greetings,
    I am unable to translate “Animated headline” and “Text button” widgets using WPML. The translatable fields are not showing up in the translation editor. I did some research and came upon this page.

    https://wpml.org/documentation/support/language-configuration-files/how-to-register-page-builder-widgets-for-translation/

    I have added a WPML XML config file and tried registering these widgets but the translatable fields are not showing up in my translation editor.
    I believe this is an issue future users would also face, so if the support team would be generous enough to provide the required config file for WPML it would be fantastic.
    I really appreciate any help you can provide.

    Please, contact administrator
    for this information.
    1 Answer
    Avatar: Behrang
    Behrang
    Participant
    August 11, 2022 at 19:00

    For any future refrence, I was able to fix this issue by adding the code below to WPML config xml

    
    <wpml-config>
      <elementor-widgets>
        <widget name="text_button">
          <fields>
            <field type="text" editor_type="LINE">text</field>
            <field type="link: url" editor_type="LINK">link>url</field>
          </fields>
        </widget>
        <widget name="etheme_animated_headline">
          <fields>
            <field type="highlighted_text_before" editor_type="LINE">highlighted_text_before</field>
            <field type="highlighted_text" editor_type="LINE">highlighted_text</field>
            <field type="highlighted_text_after" editor_type="LINE">highlighted_text_after</field>
          </fields>
        </widget>
      </elementor-widgets>
    </wpml-config>
    
  • Viewing 2 results - 1 through 2 (of 2 total)

The issue related to '‘Translating theme widgets such as animated headline or text button’' has been successfully resolved, and the topic is now closed for further responses

8theme customization service
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.