Chuyển đến nội dung chính Chuyển đến thanh bên

Waiting for author

Overview of the issue

When using JetSmartFilters with Elementor, you might experience the following issue: strings from JetSmartFilters’ Elementor widgets – such as the “Search” button label, “Remove Filter” text, and pagination controls like “Previous,” “Next,” and “Load More” – are not available for translation in WPML.

Workaround

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

  • Add the following in “WPML > Settings > Custom XML Configuration” and click on “Save”:
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    <wpml-config>
      <elementor-widgets>
        <widget name="jet-smart-filters-search">
          <fields>
            <field>apply_button_text</field>
          </fields>
        </widget>
        <widget name="jet-smart-filters-apply-button">
          <fields>
            <field>apply_button_text</field>
          </fields>
        </widget>
        <widget name="jet-smart-filters-remove-filters">
          <fields>
            <field>remove_filters_text</field>
          </fields>
        </widget>
        <widget name="jet-smart-filters-pagination">
          <fields>
            <field>prev_text</field>
            <field>next_text</field>
            <field>load_more_text</field>
          </fields>
        </widget>
      </elementor-widgets>
    </wpml-config>
  • After saving, make a small edit to each widget’s content and re-save the translations.

Để lại trả lời

Vui lòng bám sát chủ đề và tôn trọng người khác. Nếu bạn cần trợ giúp về các vấn đề không liên quan đến bài đăng này, hãy sử dụng Diễn đàn Hỗ trợ của chúng tôi để bắt đầu trò chuyện hoặc gửi yêu cầu hỗ trợ.

Bạn có thể sử dụng các thẻ này:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>