WPML
상태
해결됨
관련 플러그인/테마
Pro
주제 태그
Compatibility

문제 개요

WPML과 함께 Cornerstone 페이지 빌더를 사용할 때, WPML 인터페이스에서 번역이 가능함에도 불구하고 클래식 위젯의 번역이 프런트엔드에 표시되지 않습니다.

임시 해결 방법

다음 임시 해결 방법 중 하나를 시도할 수 있습니다.

옵션 1(권장)


  • 페이지를 편집하고 클래식 위젯새로운 요소로 교체하세요(예: “Classic Text” 요소를 “텍스트”로 교체).
옵션 2

진행하기 전에 사이트의 전체 백업을 완료했는지 확인하세요.


  • …/wp-content/plugins/sitepress-multilingual-cms/addons/wpml-page-builders/classes/Integrations/Cornerstone/class-wpml-cornerstone-translatable-nodes.php 파일을 여세요.

  • 178번째 줄을 찾으세요.

  • 다음을:

    public static function get_nodes_to_translate() {
    		return [

  • 다음으로 변경하세요.
    public static function get_nodes_to_translate() {
    		return [
    			'classic:custom-headline'                => [
    				'conditions' => [ '_type' => 'classic:custom-headline' ],
    				'fields'     => [
    					[
    						'field'       => 'content',
    						'type'        => __( 'Classic headline text content', 'sitepress' ),
    						'editor_type' => 'VISUAL',
    					],
    				],
    			],
    			'classic:text'                => [
    				'conditions' => [ '_type' => 'classic:text' ],
    				'fields'     => [
    					[
    						'field'       => 'content',
    						'type'        => __( 'Classic headline text content', 'sitepress' ),
    						'editor_type' => 'VISUAL',
    					],
    				],
    			],
  • 원본 페이지를 약간 수정하세요.
  • 페이지를 번역하세요.
    클래식 번역 에디터에서 필드가 복제된다는 점에 유의하세요.

 

옵션 3

알려진 모든 문제 →