WPML

ภาพรวมของปัญหา

เมื่อคุณใช้ปลั๊กอิน 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'] ) ); 
    ?>

ปัญหาที่ทราบแล้วทั้งหมด