WPML
สถานะ
แก้ไขแล้ว
รายงานสำหรับ
WPML Multilingual CMS 4.6.0
แก้ไขใน
WPML 4.6.5
ปลั๊กอิน/ธีมที่เกี่ยวข้อง
Beaver Themer
แท็กหัวข้อ
Compatibility

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

หากคุณใช้ Beaver Themer Layout สำหรับโพสต์แล้วแปลโพสต์นั้น เลย์เอาต์จะใช้งานได้กับโพสต์ในภาษาต้นฉบับเท่านั้น โพสต์ที่แปลแล้วจะแสดงเลย์เอาต์เริ่มต้นแทน

วิธีแก้ปัญหาชั่วคราว

โปรดสำรองข้อมูลทั้งหมดของไซต์คุณก่อนดำเนินการต่อ



    1. เปิดไฟล์ …/wp-content/plugins/bb-theme-builder/classes/class-fl-theme-builder-frontend-edit.php

    2. ค้นหาโค้ดต่อไปนี้ในบรรทัดที่ 167
static public function is_content_building_enabled( $post_id = null ) {
		return 'content' === self::get_edit_mode( $post_id );
}


  1. แทนที่ด้วยโค้ดต่อไปนี้
    static public function is_content_building_enabled( $post_id = null ) {
    		// WPML Workaround for compsupp-6652
    		if (class_exists('SitePress')) {
    			if ( self::get_edit_mode( $post_id ) == '' ) {
    				return true;
    			}
    			/* This also works:
    			return 'layout' != self::get_edit_mode( $post_id ); 
    			*/			
    		}
    		
    		return 'content' === self::get_edit_mode( $post_id );
    	}


หรือคุณสามารถตั้งค่าฟิลด์กำหนดเอง _fl_theme_builder_edit_mode เป็น คัดลอก แล้วแก้ไขแต่ละโพสต์แยกกัน

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