- สถานะ
- รอผู้พัฒนา
- ปลั๊กอิน/ธีมที่เกี่ยวข้อง
- Spectra
- แท็กหัวข้อ
- Compatibility
ภาพรวมของปัญหา
เมื่อใช้ Spectra กับ WPML คุณอาจพบปัญหาต่อไปนี้: บล็อก Spectra บางบล็อกไม่ปรากฏในตัวแก้ไขการแปลขั้นสูง (ATE) หรือเนื้อหายังคงไม่ได้รับการแปลบนส่วนหน้าเว็บไซต์แม้ว่าจะทำการแปลแล้วก็ตาม
วิธีแก้ปัญหาชั่วคราว
- ไปที่ WPML > การตั้งค่า > การกำหนดค่า XML ที่กำหนดเอง ในแดชบอร์ด WordPress ของคุณ
- เพิ่มการกำหนดค่า XML ต่อไปนี้และบันทึก:
<wpml-config> <gutenberg-blocks> <gutenberg-block type="uagb/info-box" translate="1"> <xpath>//*[contains(@class, "uagb-ifb-title")]</xpath> <xpath>//p[contains(@class, "uagb-ifb-desc")]</xpath> <xpath>//span[contains(@class, "uagb-inline-editing")]</xpath> <key name="tempHeadingDesc" /> <key name="ctaText" /> </gutenberg-block> <gutenberg-block type="uagb/image-gallery" translate="1"> <key name="mediaGallery"> <key name="*"> <key name="id"/> <key name="url" type="link" /> <key name="alt" /> <key name="link" type="link" /> <key name="caption" /> </key> </key> <key name="mediaIDs"> <key name="*" /> </key> </gutenberg-block> <gutenberg-block type="uagb/tabs" translate="1"> <key name="tabHeaders" /> <xpath>//*[contains(@class, "uagb-tab")]/a/div</xpath> </gutenberg-block> <gutenberg-block type="uagb/tabs-child" translate="1"> <key name="header" /> <key name="tabHeaders"> <key name="*" /> </key> </gutenberg-block> <gutenberg-block type="uagb/modal" translate="1"> <xpath>//span[contains(@class, "uagb-inline-editing")]</xpath> <xpath type="link">//a[contains(@class, "uagb-modal-button-link")]/@href</xpath> <key name="buttonText"/> </gutenberg-block> </gutenberg-blocks> </wpml-config>