Add class for attribute values
-
Hi,
I found this code snippet. which, as I understand it, adds attribute values to the field (178-179 rows):default: echo empty( $product->fields[ $field ] ) ? ' ' : $product->fields[ $field ]; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped break;
How do I add a <span class=” ‘attribute name slug’ + ‘attribute value slug’> for attribute values in a table?
For exemple:
<tr class="pa_blablabla different odd"> <th>Bla bla bla</th> <td class="odd product_9860"> - </td> <td class="even product_9992"> <span class="blablabla-red">Red</span>, <span class="blablabla-green">Green</span> </td> </tr>
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘Add class for attribute values’ is closed to new replies.