WPML

סקירת התקלה

בעת שימוש ב־Parallax עם WPML, מקטעים וחברי צוות לא ניתנים לתרגום כברירת מחדל, והעותק המתורגם של עמוד שמציג מקטעים אינו מציג מקטעים.

פתרון עוקף

  1. עבור אל WPMLהגדרותהגדרות XML מותאמות אישית, הוסף את ה־XML הבא ושמור:
    XML
    <wpml-config>
      <custom-types>
        <custom-type translate="1">section</custom-type>
        <custom-type translate="1">team</custom-type>
      </custom-types>
      <taxonomies>
        <taxonomy translate="1">section-category</taxonomy>
        <taxonomy translate="1">team-category</taxonomy>
      </taxonomies>
      <custom-fields>
        <custom-field action="copy-once">section_query_category</custom-field>
        <custom-field action="copy-once">section_order</custom-field>
        <custom-field action="copy-once">section_orderby</custom-field>
        <custom-field action="copy-once">section_meta_key</custom-field>
        <custom-field action="copy-once">section_posts_per_page</custom-field>
        <custom-field action="copy-once">section_hide_title</custom-field>
        <custom-field action="copy-once">section_hide_subtitle</custom-field>
        <custom-field action="copy-once">section_feature_size_page</custom-field>
        <custom-field action="copy-once">section_parallax_effect</custom-field>
        <custom-field action="copy-once">section_type</custom-field>
        <custom-field action="copy-once">section_width</custom-field>
        <custom-field action="translate">team_title</custom-field>
      </custom-fields>
    </wpml-config>
  2. תרגם את המקטעים, את קטגוריות המקטעים ואת העמודים המציגים אותם.

כל התקלות הידועות

זקוק לעזרה בבעיה זו?

פתח פנייה לתמיכה ואנחנו נבדוק זאת איתך.