WPML
Status
Resolved by author
Related plugin/theme
TheGem
Topic tags
Compatibility

Overview of the issue

When using the Product Grid widget from TheGem Theme, you will notice that product attributes cannot be translated.

Workaround

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


  • Open the app/public/wp-content/themes/thegem-elementor/gem-templates/products-extended/content-product-grid-item.php file.

  • Look for line 102.

  • Replace:
    <span class="attribute-name text-body-tiny"><?php echo $attribute_data->name; ?>:</span>

  • With:
    <?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>

All known issues →