WPML
状态
等待作者
相关插件/主题
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'] ) ); 
    ?>

所有已知问题 →