- الحالة
- محلولة بواسطة المطور
- الإضافة/القالب ذو الصلة
- TheGem
- وسوم الموضوع
- Compatibility
نظرة عامة على المشكلة
عند استخدام ودجت Product Grid من قالب TheGem، ستلاحظ أنه لا يمكن ترجمة سمات المنتج.
حل بديل مؤقت
يُرجى التأكد من أخذ نسخة احتياطية كاملة لموقعك قبل المتابعة.
- افتح الملف 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>