Use a shortcode to add a custom product attribute.
Insert this code into functions.php function custom_product_attributes_shortcode() { ob_start(); global $product; // Check if we’re on a single product page if ( is_product() ) { echo ‘<div class=”product-specs selected-attributes-info”>’; // Get the product attributes $attributes = $product->get_attributes(); $attribute_count = count( $attributes ); if ( $attribute_count === 0 || $attribute_count <= 2 ) { echo ‘<p>Not […]