[Resolved] Remove woocommerce support from the theme

Home Forums Support [Resolved] Remove woocommerce support from the theme

Home Forums Support Remove woocommerce support from the theme

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1437684
    Deepak

    Hello Team,

    I do not use Woocommerce so I would like to comment/remove this entry

    add_theme_support( 'woocommerce' );
    from functions.php

    I can do that in the parent theme but that will change with every update.

    How can I achieve this using child theme?

    Regards
    Deepak

    #1437877
    David
    Staff
    Customer Support

    Hi there,

    Add this PHP snippet to your site:

    function remove_woocommerce_support() {
        remove_theme_support( 'woocommerce' );
    }
    add_action( 'wp', 'remove_woocommerce_suppor', 100 );

    https://docs.generatepress.com/article/adding-php/

    #1437983
    Deepak

    Thanks David 🙂

    #1438052
    David
    Staff
    Customer Support

    You’re welcome

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