Hi how can I remove the title of a Single Product using a hook?
I was able to add the title elsewhere using
add_action(‘woocommerce_before_single_product_summary’, ‘avia_title’ );
But I am unable to remove the original.
As far as I know there isn’t a hook for something like that. You could potentially use a filter (maybe) but it would be much easier to just target that specific product with css and do a display: none on the title of it.
Thanks for the suggestion.
I went ahead and set the display to none.
I am having the same issue with the add to cart area I was able to add it elsewhere, but I can not remove it from under the product image on a single product page.
Again is there hook I could use to remove it?
Actually the code should work. If it does not open up wp-contentthemespropulsionconfig-woocommerceconfig.php and replace:
add_action( 'avia_add_to_cart', 'woocommerce_template_single_add_to_cart', 30, 2 );
//add_action( 'avia_add_to_cart', 'woocommerce_template_single_add_to_cart', 30, 2 );
The topic ‘How to remove Single Product title with Hook?’ is closed to new replies.