تخطي التنقل

Waiting for author

Topic Tags: Compatibility

Overview of the issue

When you use Exclusive Addons for Elementor plugin, especially the Tabs widget, you might encounter an issue where an Elementor template is not display as translated on the front-end.

Workaround

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

  • Open …/wp-content/plugins/exclusive-addons-for-elementor/elements/tabs/tabs.php file.
  • Look for line 1259.
  • Replace:
    <?php echo Plugin::$instance->frontend->get_builder_content_for_display( wp_kses_post( $tab['exad_tab_content_save_template'] ) ); ?>
    
  • With:
    <?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'] ) ); 
    ?>
    

اترك ردًا

الرجاء البقاء في الموضوع واحترام الآخرين. إذا كنت بحاجة إلى مساعدة في مشكلات غير متعلقة بهذا المنشور، استخدم منتدى الدعم الخاص بنا لبدء محادثة أو إرسال تذكرة.

يمكنك استخدام هذه العلامات:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>