탐색 건너뛰기

Open

Reported for: WPML Multilingual CMS 4.6.5

Topic Tags: Compatibility

Overview of the issue

When using Elementor Pro’s Global Widget for Forms, the feedback Custom Messages do not get translated in a translated page.

Workaround

Please, make sure of having a full backup of your site before proceeding.

  • Open the functions.php file from your theme.
  • Add the following code:
    add_filter( 'elementor/documents/get/post_id', function( $post_id ) {
    	if ( 'elementor_library' === get_post_type( $post_id ) ) {
    		$post_id = apply_filters( 'wpml_object_id', $post_id, 'elementor_library', true );
    	}
    	return $post_id;
    } );
    

2 응답 에게 “Elementor Pro - Global Form Widget: Custom Messages are not translated”

  1. It’s better to use filter and not to edit source files (as the changes are lost with Elementor’s update):


    add_filter( 'elementor/documents/get/post_id', function( $post_id ) {
    if ( 'elementor_library' === get_post_type( $post_id ) ) {
    $post_id = apply_filters( 'wpml_object_id', $post_id, 'elementor_library', true );
    }
    return $post_id;
    } );

    • Hello there,

      Thanks for bringing this to our attention! You’re absolutely right, we’ll update the workaround accordingly.

답장을 남겨주세요

주제를 유지하고 다른 사람을 존중하십시오. 이 게시물과 관련 없는 문제에 대한 도움이 필요한 경우 지원 포럼을 사용하여 채팅을 시작하거나 티켓을 제출하십시오.

다음 태그를 사용할 수 있습니다.
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>