Support » Plugin: WooCommerce » Remove Page Number from Breadcrumb

  • Resolved klemonnier

    (@klemonnier)


    Hello,

    Is it possible to remove the page number from the breadcrumb? I got (Page 1) .. (Page 2) in my breadcrumb.
    And is it possible to remove the search from the breadcrumb too?

    I added this script but before and after doesn’t working for page number breadcrumb.

    // WooCommerce BreadCrumb
    add_filter( 'woocommerce_breadcrumb_defaults', 'jk_woocommerce_breadcrumbs' );
    function jk_woocommerce_breadcrumbs() {
    return array(
    'delimiter' => '',
    'wrap_before' => '<ul class="woocommerce-breadcrumb" itemprop="breadcrumb">',
    'wrap_after' => '</ul>',
    'before' => '<li>',
    'after' => '</li>',
    'home' => _x( 'Home', 'breadcrumb', 'woocommerce' ),
    );
    
    }

    https://wordpress.org/plugins/woocommerce/

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Remove Page Number from Breadcrumb’ is closed to new replies.