I have created attributes under product > attribute. So it’s a global product attribute. I was use this code on my functions.php
function skyverge_change_attribute_list_display( $output, $attributes, $values ) {
$att_string = "";
if( $attributes["name"] == "cpu" || $attributes["name"] == "gpu" ) {
$att_string = wpautop( wptexturize( implode( '<br />', $values ) ) );
} else {
$att_string = $output;
}
return $att_string;
}
add_filter( 'woocommerce_attribute','skyverge_change_attribute_list_display', 10, 3 );
I want to apply this code to ‘CPU’ and ‘GPU’ that’s why i replace it by attributes name. Thanks.