- Stato
- Risolto dall’autore
- Plugin/tema correlato
- TheGem
- Tag dell’argomento
- Compatibility
Panoramica del problema
Quando usi il widget Product Grid del tema TheGem, noterai che gli attributi del prodotto non possono essere tradotti.
Soluzione alternativa
Assicurati di avere un backup completo del tuo sito prima di procedere.
- Apri il file app/public/wp-content/themes/thegem-elementor/gem-templates/products-extended/content-product-grid-item.php.
- Cerca la riga 102.
- Sostituisci:
<span class="attribute-name text-body-tiny"><?php echo $attribute_data->name; ?>:</span>
- Con:
<?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>