탐색 건너뛰기

Open

Reported for: WPML Multilingual CMS 4.6.13

Topic Tags: Compatibility

Overview of the issue

When using Elementor popups with WPML, containers with links set to open a popup will always display it on the default language, even if you have a translated version of it.

Workaround

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

  • Open your theme’s functions.php file.
  • Add the following snippet:
    /**
     * Convert the popup link in an container
     * compsupp-7641 workaround
     */
    add_filter( 'wpml_pb_elementor_widget_dynamic_id_converters', function( $converters ) {
    	$isContainer = WPMLFPRelation::propEq( 'elType', 'container' );
    
    	$containerLinksLens = WPMLFPcompose(
    		WPMLFPObj::lensProp( 'settings' ),
    		WPMLFPObj::lensPath( [ '__dynamic__', 'link' ] )
    	);
    	return array_merge(
    		$converters,
    		[
    				[ $isContainer, $containerLinksLens, 'popup', 'popup' ],
    		]
    	);
    } );
    

2 응답 에게 “Elementor - Translated Popups Not Displaying Correctly in Page Builder Container Links”

    • Hallo,
      Diese Problemumgehung gilt für Links, die in Containern hinzugefügt werden.
      Für Popups, die zu globalen Widgets hinzugefügt werden, wäre dies jedoch nicht erforderlich.
      Könnten Sie bitte einen Chat in unserem Support-Forum starten? Auf diese Weise können wir Ihren Fall untersuchen und Ihnen helfen, eine Lösung für Ihren Fall zu finden.
      Grüße

답장을 남겨주세요

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

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