WPML

문제 개요

Enfold의 쿠키 팝업을 사용하면 언어를 전환할 때마다 팝업이 열립니다.

임시 해결 방법

이 문제는 해결되었습니다. 최신 버전으로 업데이트하면 사이트에서 이 문제가 해결되므로, 아직 업데이트할 수 없는 경우에만 이 임시 해결 방법이 필요합니다.

이 문제를 영구적으로 수정하기 위해 테마 개발자와 협력하고 있습니다. 그동안 다음 임시 해결 방법을 사용할 수 있습니다.

  1. 웹사이트 파일과 데이터베이스를 백업하세요.
  2. 테마의 functions.php 파일에 다음 코드 스니펫을 추가하세요:
    add_filter('avf_cookie_consent_for_md5', function ($cookie_contents){
    
    	$default_lang = apply_filters( 'wpml_default_language', null );
    
    	$message = avia_wpml_get_options('cookie_content');
    	$message = do_shortcode( (array) $message[$default_lang] );
    	$buttons = avia_wpml_get_options( 'msg_bar_buttons' ) ? avia_wpml_get_options( 'msg_bar_buttons' ) : [];
    	$cookie_contents = $message;
    
    	foreach( $buttons as $button ) {
    		$cookie_contents .= $button['msg_bar_button_label'];
    	}
    
    	return $cookie_contents;
    });

모든 알려진 문제

여전히 이 문제가 발생합니까?

업데이트해도 문제가 해결되지 않으면 지원 문의를 하세요. 함께 살펴보겠습니다.