Site logo

[Resolved] Can’t remove title for WooCommerce products for some reason

Home Forums Support [Resolved] Can’t remove title for WooCommerce products for some reason

Home Forums Support Can’t remove title for WooCommerce products for some reason

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #2482749
    Scott

    Trying to disable the standard title for a single product so I can replace it with an h1 title followed by a custom field in a normal font on the next line.

    I’d usually use:
    remove_action( ‘woocommerce_single_product_summary’, ‘woocommerce_template_single_title’, 5 );
    but that doesn’t seem to be working.

    I’ve tried disabling plugins that are related to WooCommerce to make sure they aren’t causing this and have not yet fixed the issue.

    Has anything changed in GP, GPP’s handling of WooCommerce single product pages that might be the issue?

    If not, any suggestions for how to track down other possible causes? Something seems to be either turning the default action back on or replacing it with a priority I can’t seem to override. I even tried removing the standard action multiple times for priorities from 1 – 10 with no change.

    #2482756
    Scott

    Nevermind. I moved my remove_action into a filter that fires right before the single product summary which seems to have made sure WC has already added their action before I try to remove it.

    #2482787
    Leo
    Staff
    Customer Support

    Glad to hear 🙂

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.