- ステータス
- 開発者からの返答待ち
- 関連するプラグイン/テーマ
- Exclusive Addons Elementor
- トピックタグ
- Compatibility
問題の概要
Exclusive Addons for Elementorプラグインを使用する際、特にTabsウィジェットにおいて、フロントエンドでElementorテンプレートが翻訳された状態で表示されない問題が発生する場合があります。
回避策
作業を進める前に、サイトの完全なバックアップを必ず取得してください。
- …/wp-content/plugins/exclusive-addons-for-elementor/elements/tabs/tabs.php ファイルを開きます。
- 1259行目を探します。
- 以下のコードを:
<?php echo Plugin::$instance->frontend->get_builder_content_for_display( wp_kses_post( $tab['exad_tab_content_save_template'] ) ); ?>
- 次のように置き換えます:
<?php // WPML Workaround for compsupp-6922 if (class_exists('Sitepress')) { $post_type = get_post_type( $tab['exad_tab_content_save_template'] ); $tab['exad_tab_content_save_template'] = apply_filters( 'wpml_object_id', $tab['exad_tab_content_save_template'], $post_type, true ); } echo Plugin::$instance->frontend->get_builder_content_for_display( wp_kses_post( $tab['exad_tab_content_save_template'] ) ); ?>