• Hi, I’m working on an e-commerce site using the woocommerce plugin and I would like to make some customizations to its functions, namely ones relative to breadcrumbs.

    I’ve found tutorials but they all deal with using a child theme’s function.php file. This only seems to apply if one is using an Woocommerce-enabled Wootheme.

    I am using my own theme, coupled with a child theme but that doesn’t apply as the functions I want to customize are relative to the woocommerce plugin directory.

    Is there any way to create a “child-theme” for the woocommerce plugin itself? A way to make code modifications in a non-destructive manner?

    Thanks,
    Rene

    —–

    This is the snippet I’m working with right now:

    add_filter( ‘woocommerce_breadcrumb_defaults’, ‘jk_change_breadcrumb_home_text’ );
    function jk_change_breadcrumb_home_text( $defaults ) {
    // Change the breadcrumb home text from ‘Home’ to ‘Shop Home’
    $defaults[‘home’] = ‘Shop Home’;
    return $defaults;
    }

    add_filter( ‘woocommerce_breadcrumb_home_url’, ‘woo_custom_breadrumb_home_url’ );
    function woo_custom_breadrumb_home_url() {
    return ‘new url’;
    }

  • The topic ‘Customizing Woocommerce functions’ is closed to new replies.