Comments 1Javier started the conversation3 weeks ago on April 16, 2025 at 12:09pmWhen I select individual variations, it only shows the parent product name (Uniform Shirt) But I want it to show the full name (Uniform Shirt - M, Female). How can I do this 1,436Dustin replied3 weeks ago on April 17, 2025 at 3:08amHi Javier, In some cases, WooCommerce doesn’t show the attributes in the product name https://www.screencast.com/t/iU3bq77n. Please add the custom code below to fix it. (How to add custom code? ↗): add_filter( 'woocommerce_product_variation_title_include_attributes', '__return_true', 99 );Best regards,Dustin 1Javier replied3 weeks ago on April 20, 2025 at 6:31amTHanks! is it possible to add a SPAN tag to the variation part. I want to style that to make it stand out. 1,436Dustin replied3 weeks ago on April 20, 2025 at 6:00pmPlease try this snippet: add_filter( 'woocommerce_product_variation_title', function ( $title, $product, $title_base, $title_suffix ) { $separator = apply_filters( 'woocommerce_product_variation_title_attributes_separator', ' - ', $product ); return $title_base . $separator . '<span>' . $title_suffix . '</span>'; }, 99, 4 );Best regards,Dustin1 Like 1Javier replied3 weeks ago on April 21, 2025 at 6:42pmWorks Thanks!. I was confused, but I realized had to use both snippets1 Like 1,436Dustin replied3 weeks ago on April 22, 2025 at 3:08amYou're welcome! If you are satisfied with our plugin and support, please reward it with a full five-star ★★★★★ rating.https://wordpress.org/support/plugin/woo-product-bundle/reviews?rate=5#new-postThank you in advance! ♥Best regards,Dustin Sign in to reply ...
When I select individual variations, it only shows the parent product name (Uniform Shirt) But I want it to show the full name (Uniform Shirt - M, Female). How can I do this
Hi Javier,
In some cases, WooCommerce doesn’t show the attributes in the product name https://www.screencast.com/t/iU3bq77n.
Please add the custom code below to fix it. (How to add custom code? ↗):
Best regards,
Dustin
THanks! is it possible to add a SPAN tag to the variation part. I want to style that to make it stand out.
Please try this snippet:
Best regards,
Dustin
Works Thanks!. I was confused, but I realized had to use both snippets
You're welcome!
If you are satisfied with our plugin and support, please reward it with a full five-star ★★★★★ rating.
https://wordpress.org/support/plugin/woo-product-bundle/reviews?rate=5#new-post
Thank you in advance! ♥
Best regards,
Dustin