تخطي إلى المحتوى تخطي إلى الشريط الجانبي

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.

اترك ردًا

الرجاء البقاء في الموضوع واحترام الآخرين. إذا كنت بحاجة إلى مساعدة في مشكلات غير متعلقة بهذا المنشور، استخدم منتدى الدعم الخاص بنا لبدء محادثة أو تقديم تذكرة.

يمكنك استخدام هذه الوسوم:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>