Skip to content Skip to sidebar

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="directorist_all_listing">
          <fields>
            <field>header_title</field>
          </fields>
        </widget>
        <widget name="directorist_search_listing">
          <fields>
            <field>title</field>
            <field>subtitle</field>
            <field>search_btn_text</field>
            <field>more_filter_btn_text</field>
            <field>more_filter_reset_btn_text</field>
            <field>more_filter_search_btn_text</field>
          </fields>
        </widget>
        <widget name="directorist_search_result">
          <fields>
            <field>header_title</field>
          </fields>
        </widget>
        <widget name="directorist_category">
          <fields>
            <field>header_title</field>
          </fields>
        </widget>
        <widget name="directorist_location">
          <fields>
            <field>header_title</field>
          </fields>
        </widget>
        <widget name="directorist_tag">
          <fields>
            <field>header_title</field>
          </fields>
        </widget>
       <widget name="directorist_user_login">
          <fields>
            <field>signin_username_label</field>
            <field>signin_button_label</field>
            <field>recovery_password_label</field>
            <field>recovery_password_description</field>
            <field>recovery_password_email_label</field>
            <field>recovery_password_email_placeholder</field>
            <field>recovery_password_button_label</field>
            <field>signup_label</field>
            <field>signup_linking_text</field>
            <field>author_role_label</field>
            <field>user_role_label</field>
            <field>username_label</field>
            <field>password_label</field>
            <field>email_label</field>
            <field>website_label</field>
            <field>firstname_label</field>
            <field>lastname_label</field>
            <field>bio_label</field>
            <field>privacy_label</field>
            <field>privacy_linking_text</field>
            <field>terms_label</field>
            <field>terms_linking_text</field>
            <field>signup_button_label</field>
            <field>signin_message</field>
            <field>signin_linking_text</field>
            <field>active_form</field>
          </fields>
        </widget>
      </elementor-widgets>
    </wpml-config>
            

Leave a Reply

Please stay on topic and be respectful to others. If you need help with issues not related to this post, use our Support Forum to start a chat or submit a ticket.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>