Hi there,
Is there a way to get a specific product feature into the title line of a product in the product list page?
Best regards and thanks for all the support sofar!
Hey Zest,
I might have misunderstood you, but wouldn’t be easier to simply rename the product?
Best regards,
Rikard
Hi,
No, I think you have exactly understood. Your question is very valid. But we want to keep the product names clean for SEO reasons and they are being used in other contexts in the site “cleaned” too.
Best regards.
Hi,
Is that a product attribute? You can try the “woocommerce_after_shop_loop_item_title” hook.
add_action('woocommerce_after_shop_loop_item_title', 'ava_add_variation');
function ava_add_variation() {
global $product;
$atts = $product->get_attribute( 'size' ); // name of the attribute
if(empty($atts)) return;
echo $atts;
}
Best regards,
Ismael
Fantastic, thanks! Have a good weekend.
Hi,
Glad we could help :)
Best regards,
Nikko