ภาพรวมของปัญหา
เมื่อใช้ Flatsome กับ WPML ข้อความบางส่วนไม่สามารถแปลได้: เวลาทำการติดต่อในส่วนหัวและคำต่อท้ายข้อความที่ตัดตอนมาของบล็อกในตัวเลือกธีม ชื่อและบริษัทของอิลิเมนต์ Testimonial ข้อความของปุ่มในส่วนหัว และชื่อของอิลิเมนต์ Products
วิธีแก้ปัญหาชั่วคราว
- ไปที่ WPMLการตั้งค่าการกำหนดค่า XML ที่กำหนดเอง เพิ่ม XML ต่อไปนี้แล้วบันทึก:
XML
<wpml-config> <shortcodes> <shortcode> <tag>testimonial</tag> <attributes> <attribute>name</attribute> <attribute>company</attribute> <attribute type="link">link</attribute> </attributes> </shortcode> <shortcode> <tag>header_button</tag> <attributes> <attribute>text</attribute> <attribute type="link">link</attribute> </attributes> </shortcode> <shortcode> <tag>ux_products</tag> <attributes> <attribute>title</attribute> </attributes> </shortcode> </shortcodes> <admin-texts> <key name="theme_mods_flatsome"> <key name="contact_hours" /> <key name="blog_excerpt_suffix" /> </key> </admin-texts> </wpml-config>
- แปลข้อความตัวเลือกธีมใน WPMLการแปลสตริง
- แปลหน้าที่ใช้องค์ประกอบ UX Builder เหล่านี้อีกครั้ง