탐색 건너뛰기

Waiting for author

Topic Tags: Compatibility

Overview of the issue

When using the using the tagDiv builder with Newspaper Theme, there is an issue with translating multiple widgets, namely, titles, descriptions, Buttons, etc…

Workaround

Add the following XML in WPML > Setting > Custom XML Configuration:

<wpml-config>
  <shortcodes>
    <shortcode>
      <tag>td_block_title</tag>
      <attributes>
        <attribute>custom_title</attribute>
      </attributes>
    </shortcode>
    <shortcode>
      <tag>td_flex_block_3</tag>
      <attributes>
        <attribute>custom_title</attribute>
      </attributes>
    </shortcode>
    <shortcode>
      <tag>td_block_text_with_title</tag>
    </shortcode>
    <shortcode>
      <tag>tdm_block_button</tag>
      <attributes>
        <attribute>button_text</attribute>
      </attributes>
    </shortcode>
    <shortcode>
      <tag>vc_single_image</tag>
      <attributes>
        <attribute>image</attribute>
      </attributes>
    </shortcode>
    <shortcode>
      <tag>tdm_block_icon_box</tag>
      <attributes>
        <attribute>button_text</attribute>
        <attribute encoding="base64">title_text</attribute>
        <attribute encoding="base64">description</attribute>
      </attributes>
    </shortcode>
    <shortcode>
      <tag>tdm_block_image_info_box</tag>
      <attributes>
        <attribute>button_text</attribute>
      </attributes>
    </shortcode>
    <shortcode>
      <tag>td_flex_block_1</tag>
      <attributes>
        <attribute>custom_title</attribute>
      </attributes>
    </shortcode>
        <shortcode>
      <tag>tdm_block_image_info_box</tag>
      <attributes>
        <attribute>box_title</attribute>
        <attribute>button_text</attribute>
        <attribute encoding="base64">box_description</attribute>
      </attributes>
    </shortcode>
  </shortcodes>
</wpml-config>
 

Then apply a small edit to the post for these new fields to load in the translation editor.

답장을 남겨주세요

주제를 유지하고 다른 사람을 존중하십시오. 이 게시물과 관련 없는 문제에 대한 도움이 필요한 경우 지원 포럼을 사용하여 채팅을 시작하거나 티켓을 제출하십시오.

다음 태그를 사용할 수 있습니다.
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>