WPML
Trạng thái
Đã được giải quyết bởi nhà phát triển
Đã giải quyết trong
Unlimited Elements for Elementor 2.0
Plugin/giao diện liên quan
Unlimited Elements for Elementor
Thẻ chủ đề
Compatibility

Tổng quan về lỗi

Khi sử dụng Unlimited Elements for Elementor với WPML, bạn có thể gặp phải sự cố sau: các hình ảnh được dịch bằng Dịch phương tiện của WPML có thể hiển thị bằng ngôn ngữ mặc định của trang web. Điều này thường ảnh hưởng đến các widget hình ảnh như CoverFlow Carousel.

Giải pháp tạm thời

Đảm bảo bạn có bản sao lưu toàn bộ trang web trước khi tiếp tục.


  • Mở tệp …/wp-content/plugins/unlimited-elements-for-elementor/provider/wpml_integrate.class.php.

  • Tìm dòng 156.

  • Thay thế:
    $alternateThumbID = apply_filters( 'wpml_object_id', $thumbID, 'attachment', false, self::$objWpmlSingleton->activeLanguage );
            


  • Bằng:
    $current_lang = apply_filters( 'wpml_current_language', null );
    $alternateThumbID = apply_filters( 'wpml_object_id', $thumbID, 'attachment', false, $current_lang );
            

Tất cả các lỗi đã ghi nhận →