문제 개요
WPML과 함께 Addon Elements for Elementor를 사용할 때 번역된 페이지의 Content Switcher, Modal Popup, Dropbar 또는 Data Table 위젯에 표시되는 저장된 템플릿이 기본 언어로 유지되는 문제가 발생할 수 있습니다.
임시 해결 방법
자식 테마의 functions.php 파일에 다음 코드를 추가하세요.
PHP
add_filter( 'elementor/documents/get/post_id', function ( $id ) {
if ( 'elementor_library' === get_post_type( $id ) ) {
$id = apply_filters( 'wpml_object_id', $id, 'elementor_library', true );
}
return $id;
} );이 코드를 추가하면 콘텐츠 전환기, 모달 팝업, 드롭바 및 데이터 테이블 위젯이 번역된 페이지에 번역된 템플릿을 표시합니다.