콘텐츠로 건너뛰기 사이드바로 건너뛰기

Open

Overview of the issue

When using Directorist, certain text strings such as “Listings Found” from the plugin’s Gutenberg blocks and Elementor widgets are not translatable with WPML. This happens because the newer widgets and blocks introduced by Directorist do not include the necessary XML configuration.

Workaround

Please, make sure of having a full site backup of your site before proceeding.

  • Go to WPML → Settings → Custom XML Configuration.
  • Add the following XML code and save it:
    <wpml-config>
      <elementor-widgets>
        <widget name="image">
          <fields>
            <field>image>alt</field>
            <field>link>url</field>
          </fields>
        </widget>
        <widget name="directorist_all_listing">
          <fields>
            <field>header_title</field>
          </fields>
        </widget>    
      </elementor-widgets>
      <gutenberg-blocks>
         <gutenberg-block type="directorist/all-listing" translate="1">
            <key name="header_title" />
        </gutenberg-block>
      </gutenberg-blocks>
    </wpml-config>
            

답글 남기기

주제에 충실하고 다른 사람들을 존중해 주세요. 이 게시물과 관련 없는 문제에 대해 도움이 필요하다면, 지원 포럼을 이용하여 채팅을 시작하거나 티켓을 제출하세요.

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