WPML
ステータス
開発者からの返答待ち
関連するプラグイン/テーマ
Make Column Clickable Elementor
トピックタグ
Compatibility, Elementor Custom Widgets

問題の概要

Make Column Clickable Elementorプラグインを使用してElementorポップアップを開く場合、セカンダリ言語のページではポップアップIDが翻訳されません。その結果、訪問者には翻訳されたものではなく、元の言語のポップアップが表示されます。

回避策

作業を進める前に、必ずサイトの完全なバックアップを取得してください。


  • テーマのfunctions.phpファイルに以下のコードを追加します。
    /**
     * Convert the popup link in a column
     * Based on compsupp-7641 workaround
     */
    add_filter( 'wpml_pb_elementor_widget_dynamic_id_converters', function( $converters ) {
    	$isContainer = WPMLFPRelation::propEq( 'elType', 'column' );
    
    	$containerLinksLens = WPMLFPcompose(
    		WPMLFPObj::lensProp( 'settings' ),
    		WPMLFPObj::lensPath( [ '__dynamic__', 'column_link' ] )
    	);
    	return array_merge(
    		$converters,
    		[
    				[ $isContainer, $containerLinksLens, 'popup', 'popup' ],
    		]
    	);
    } );
            

重要な注意事項:

Make Column Clickable Elementorプラグインは過去3年間アップデートされておらず、積極的にメンテナンスされていないようです。そのため、恒久的な修正を行わずにこの既知の問題をクローズします。

すべての既知の問題 →