• I am trying to translate (link) your widgets with WPML and while I got the rest widgets working, could not figure out how to translate links for Icon
    Box and Gallery Portfolio.

    If I unserialize code I see these sections.

    [sg_readmore_globallink] => stdClass Object
                                            (
                                                [url] => https://domain.com/
                                                [is_external] => 
                                                [nofollow] => 
                                                [custom_attributes] => 
                                            
    )

    and

    [sg_gallery_list_more_link] => stdClass Object
                                                            (
                                                                [url] => https://domain.com/
                                                                [is_external] => 
                                                                [nofollow] => 
                                                                [custom_attributes] => 
                                                            )

    My current XML config file is this but the sg_readmore_globallink[url] and sg_gallery_list_more_link[url] fields do not show links when translating. I think my code is wrong.

    <wpml-config>
      <elementor-widgets>
         <widget name="jkit_icon_box">
          <fields>
            <field type="Title" editor_type="LINE">sg_icon_text</field>
            <field type="Title" editor_type="LINE">sg_icon_description</field>
            <field type="Title" editor_type="LINE">sg_readmore_button_label</field>
            <field type="Title" editor_type="LINE">sg_badge_text</field>
    
            <field type="Url" editor_type="LINK">sg_readmore_globallink[url]</field>
    
          </fields>
        </widget>
        <widget name="jkit_portfolio_gallery">
          <fields-in-item items_of="sg_gallery_list">
            <field type="Title" editor_type="LINE">sg_gallery_list_title</field>
            <field type="Title" editor_type="LINE">sg_gallery_list_subtitle</field>
            <field type="Title" editor_type="LINE">sg_gallery_list_more_text</field>
    
            <field type="Url" editor_type="LINK">sg_gallery_list_more_link[url]</field>
    
          </fields-in-item>
        </widget>
      </elementor-widgets>
    </wpml-config>

    Can you help me figure out how to get the sg_readmore_globallink and sg_gallery_list_more_link links to show up in the translation fields when I translate pages?

    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Fauzan Jegstudio

    (@fauzanjegstudio)

    Hello @webbbio,

    We apologize for the delay in our response. To configure translation with WPML using XML, the code would be similar to what is shown in the code in the link below.

    Pastebin: https://pastebin.com/wyrvYb3E

    However, we have previously tried it as well, but the translation for URLs did not work. This issue is also present in other Elementor plugins. Therefore, We recommend contacting the WPML team regarding this issue for further assistance.

    Thank You

    Thread Starter webbbio

    (@webbbio)

    Hi, thanks for looking into it.
    Can you recommend another solution or maybe I am missing a setting somewhere. The problem is, that even tho the widget is translated, the link does not automatically redirect to translated language page and still keeps the original language link.

    Like page “About us” has a link to another page “Contact”. In original language I add the widget to about us page and link it to contact. But then the translated About us page still links to original language and not the translated contact page. Usually wpml redirects links automatically to translated pages.

    Just wondering, maybe there is another workaround.
    Thanks again for good support.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘WPML Custom XML Configuration’ is closed to new replies.