WPML
สถานะ
แก้ไขแล้วโดยผู้พัฒนา
ปลั๊กอิน/ธีมที่เกี่ยวข้อง
TheGem
แท็กหัวข้อ
Compatibility

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

เมื่อใช้วิดเจ็ต Product Grid จาก TheGem Theme คุณจะพบว่าไม่สามารถแปลแอตทริบิวต์ของสินค้าได้

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

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


  • เปิดไฟล์ app/public/wp-content/themes/thegem-elementor/gem-templates/products-extended/content-product-grid-item.php

  • ค้นหาบรรทัดที่ 102

  • แทนที่:
    <span class="attribute-name text-body-tiny"><?php echo $attribute_data->name; ?>:</span>

  • ด้วย:
    <?php 
    	// WPML Workaround for compsupp-7150
    	$attribute_name = apply_filters('wpml_translate_single_string', $attribute_data->name , 'WordPress', 'taxonomy singular name: '.$attribute_data->name );
    ?>
    <span class="attribute-name text-body-tiny"><?php echo $attribute_name; ?>:</span>

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