Viewing 1 replies (of 1 total)
  • Hello there,

    Thanks for reaching out to us!

    We detect individual strings, meaning, without it, you’ll have to translate all the variations instead of translating just the title once and each variation each time.

    You can use this code to remove the <span> tag:

    add_filter( ‘woocommerce_product_variation_title’, ‘filter_product_variation_title_callback’, 10, 4 );
    function filter_product_variation_title_callback( $variation_title, $product, $title_base, $title_suffix ) {

    $title_base = strip_tags($variation_title);

    return $title_base;
    }

    You can remove the filter without worrying anything will break.

    Let me know if you need further help!

    Regards

Viewing 1 replies (of 1 total)

The topic ‘Changes on Mini-cart and Cart’ is closed to new replies.