• Resolved nummell

    (@nummell)


    Hi,

    How can I remove the <span> – </span> from woocommerce variable products?
    Some emails show the span on variable products.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Alex

    (@alexcozmoslabs)

    Hi,

    Please, try using the following custom code:

    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; }

    • Install this plugin via FTP (copy it inside wp-content/plugins) or create a zip archive with it and install it via the WordPress plugin upload functionality.

    Best Regards,

    • This reply was modified 1 year, 5 months ago by Alex.
    Thread Starter nummell

    (@nummell)

    Hi Alex,

    Thank you, problem solved.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Span tag in variable products’ is closed to new replies.