- 상태
- 개발자가 해결함
- 해결된 버전
- Avada 7.11.4
- 관련 플러그인/테마
- Avada
- 주제 태그
- Compatibility
문제 개요
WordPress 에디터를 사용하여 Avada 라이브러리 요소를 수동으로 번역할 때 요소의 유형(예: “Container”)이 번역된 버전에 반영되지 않습니다. 결과적으로 번역된 요소는 항상 Template 유형으로 식별됩니다.
다른 언어로 복제하거나 고급 번역 에디터(ATE)를 사용하여 번역하는 경우에는 이 문제가 발생하지 않습니다.
임시 해결 방법
진행하기 전에 사이트의 전체 백업을 만들어 두세요.
옵션 1
- 먼저 요소를 복제하세요
- 그런 다음 편집하고, 독립적으로 번역한 후 값을 변경하세요.
옵션 2
- 테마의 functions.php 파일을 여세요.
- 다음 코드를 추가하세요:
add_action( 'edit_form_top', 'callback__edit_form_top' ); function callback__edit_form_top( $post ) {; if ($post->post_type == "fusion_element") { $trid = apply_filters( 'wpml_element_trid', NULL, $post->ID, 'post_'. $post->post_type ); $translations = apply_filters( 'wpml_get_element_translations', NULL, $trid, 'post_'. $post->post_type ); foreach ($translations as $translation) { if ($translation->original == 1){ $original = $translation->element_id; } } $originalterms = wp_get_post_terms( $original, 'element_category' ); $currenttranslationterms = wp_get_post_terms( $post->ID, 'element_category' ); if (empty($currenttranslationterms)) { foreach ($originalterms as $term){ wp_set_object_terms( $post->ID, $term->term_id, $term->taxonomy ); } } } } - Avada > Library로 이동하세요.
- 그런 다음 요소를 먼저 열고 저장하세요.
- 페이지를 새로 고침한 다음 필요한 요소를 추가하세요.