G
G
Genri_Rus2019-12-20 00:37:36
WordPress
Genri_Rus, 2019-12-20 00:37:36

How to set a class to a link in breadcrumbs?

Let's say how you can add it to woocommerce Maybe you can somehow use the hook ?<a href="#" class="breadcrumb"></a>

add_filter( 'woocommerce_breadcrumb_defaults', 'jk_woocommerce_breadcrumbs' );
function jk_woocommerce_breadcrumbs() {
return array(
'delimiter' => ' &#47; ',
'wrap_before' => '<nav class="woocommerce-breadcrumb" itemprop="breadcrumb">',
'wrap_after' => '</nav>',
'before' => '',
'after' => '',
'home' => _x( 'Аппартаменты', 'breadcrumb', 'woocommerce' ),
);
}

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question