Home Forums Space themes support forum Breadcumbs disable in product page only

Breadcumbs disable in product page only

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #327049

    mayankjha
    Participant

    Breadcumbs disable in product page only, please help.

    #327340

    Luke Nielsen
    Keymaster

    Hello,

    In order to remove breadcrumbs on the product page, try to add this code to the functions.php file in your child theme.

    if ( ! function_exists('xts_remove_single_breadcrumbs') ) {
        function xts_remove_single_breadcrumbs() {
            remove_action( 'woocommerce_before_single_product_summary', 'xts_single_product_breadcrumbs', 10 );
        }
    
        add_action('wp', 'xts_remove_single_breadcrumbs', 200);
    }

    Kind Regards

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