WPML Custom XML Configuration
-
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)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘WPML Custom XML Configuration’ is closed to new replies.