Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #22559

    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.

    Thanks

    #116177

    Hi gswift1,

    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.

    Regards,

    Devin

    #116178

    Hi Devin,

    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.

    I tried

    Code:
    remove_action( ‘avia_add_to_cart’, ‘woocommerce_template_single_add_to_cart’, 30, 2 );

    Again is there hook I could use to remove it?

    Thank you.

    #116179

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

    with:

    //add_action( 'avia_add_to_cart', 'woocommerce_template_single_add_to_cart', 30, 2 );

    #116180

    Hey Dude,

    I didn’t even think of that.

    Great idea I was able to remove it thank you.

Viewing 5 posts - 1 through 5 (of 5 total)

The topic ‘How to remove Single Product title with Hook?’ is closed to new replies.