Site icon Hip-Hop Website Design and Development

Show attribute on store web page after the title

I’m utilizing the next code for displaying a customized attribute on the Woocommerce store web page. However for some cause, the 12 months is displayed above the product picture as an alternative of after the product title (In between the product title and the value).

add_action('woocommerce_after_shop_loop_item_title', 'YearOfMake', 10);

operate YearOfMake()
{
    world $product;

    $abv = $product->get_attribute('year-made');
    if (empty($abv))
        return;
    echo __($abv, 'woocommerce');
}

Hyperlink: https://groovygarbs.com/vehicles/