- Trạng thái
- Đã giải quyết
- Đã giải quyết trong
- Avada 7.2
- Plugin/giao diện liên quan
- Avada
Tổng quan về lỗi
Sau khi dịch một bài viết có chứa các phần tử toàn cục từ Fusion Builder trong giao diện Avada, nội dung hiển thị bằng ngôn ngữ mặc định thay vì ngôn ngữ đã dịch.
Giải pháp tạm thời
Chỉnh sửa tệp wpml-compatibility-plugin-fusion-global-element-hooks.php nằm trong thư mục wp-content/plugins/sitepress-multilingual-cms/compatibility/fusion_builder/ và thêm đoạn mã sau:
add_filter( 'the_content', [ $this, 'translate_global_element_ids' ], self::BEFORE_ADD_GLOBAL_ELEMENTS_PRIORITY );… ngay sau đoạn mã này:
public function add_hooks() {
add_filter(
'content_edit_pre',
[ $this, 'translate_global_element_ids' ],
self::BEFORE_ADD_GLOBAL_ELEMENTS_PRIORITY
);