WPML

ภาพรวมของปัญหา

เมื่อใช้ธีม Shout ร่วมกับ WPML รายการที่แปลแล้วจะสูญเสียฟิลด์และการตั้งค่าเลย์เอาต์ของธีม ข้อความแถบด้านบนและหน้าส่วนท้ายจะยังคงอยู่ในภาษาเริ่มต้น ข้อความของบาง shortcode จะไม่ได้รับการแปล และข้อความในวิดเจ็ต vCard จะไม่สามารถแปลได้ ลิงก์ไปยังโพสต์ก่อนหน้าและโพสต์ถัดไปอาจนำไปสู่โพสต์ในภาษาอื่นได้เช่นกัน

วิธีแก้ปัญหาชั่วคราว

  1. ไปที่ WPMLการตั้งค่า และเปิดแท็บ การกำหนดค่า XML ที่กำหนดเอง
  2. เพิ่มโค้ดนี้แล้วบันทึก:
    XML
    <wpml-config>
      <custom-fields>
          <custom-field action="translate">member_job</custom-field>
          <custom-field action="copy">_member_job</custom-field>
          <custom-field action="translate">member_byline</custom-field>
          <custom-field action="copy">_member_byline</custom-field>
          <custom-field action="translate">below_headings_text</custom-field>
          <custom-field action="copy">_below_headings_text</custom-field>
          <custom-field action="translate">testimonial_subheading</custom-field>
          <custom-field action="copy">_testimonial_subheading</custom-field>
          <custom-field action="translate">pirenko_rotating_text</custom-field>
          <custom-field action="copy">_pirenko_rotating_text</custom-field>
          <custom-field action="copy">featured_header</custom-field>
          <custom-field action="copy">_featured_header</custom-field>
          <custom-field action="copy">show_sidebar</custom-field>
          <custom-field action="copy">_show_sidebar</custom-field>
          <custom-field action="copy">sidebar_pos</custom-field>
          <custom-field action="copy">_sidebar_pos</custom-field>
      </custom-fields>
      <admin-texts>
        <key name="prk_shout_options">
          <key name="bar_left_text_1"/>
          <key name="theme_divider"/>
          <key name="woo_subheading"/>
          <key name="bottom_page_id"/>
        </key>
      </admin-texts>
      <shortcodes>
        <shortcode>
            <tag>pirenko_contact_info</tag>
            <attributes>
                <attribute>company_name</attribute>
                <attribute>street_address</attribute>
                <attribute>locality</attribute>
                <attribute>postal_code</attribute>
                <attribute>tel</attribute>
                <attribute>fax</attribute>
                <attribute>hours</attribute>
                <attribute>email</attribute>
            </attributes>
        </shortcode>
        <shortcode>
            <tag>prk_sitemap</tag>
            <attributes>
                <attribute>txt_pages</attribute>
                <attribute>txt_blog_cats</attribute>
                <attribute>txt_posts</attribute>
                <attribute>txt_port_posts</attribute>
            </attributes>
        </shortcode>
      </shortcodes>
    </wpml-config>
  3. ไปที่ WPMLการแปลสตริง แปลข้อความแถบด้านบน และแปล bottom_page_id เป็น ID ของหน้าส่วนท้ายที่แปลแล้ว
  4. แปลหน้าและรายการของคุณอีกครั้ง เพื่อให้คำแปลได้รับฟิลด์
  5. สำหรับวิดเจ็ต vCard ให้เพิ่มวิดเจ็ตหนึ่งรายการต่อภาษา และกำหนดภาษาในการตั้งค่าวิดเจ็ต
  6. สำหรับลิงก์โพสต์ก่อนหน้าและถัดไป คุณสามารถปิดการนำทางโพสต์ในตัวเลือกธีมจนกว่าผู้พัฒนาธีมจะแก้ไขปัญหานี้

ปัญหาที่ทราบแล้วทั้งหมด

ต้องการความช่วยเหลือเกี่ยวกับปัญหานี้หรือไม่

ถามคำถามถึงฝ่ายสนับสนุน และเราจะตรวจสอบเรื่องนี้ไปพร้อมกับคุณ