How to make the last breadcrumb element a H1 heading?
-
I want to make the very last Woocommerce shop breadcrumb element on each shop page a h1 header, e.g. the Word “Biking” in the following example:
Startpage > SHOP > Sports > Biking
I have already found the following code which allows to make several changes to the breadcrumb settings:
add_filter( 'woocommerce_breadcrumb_defaults', 'jk_woocommerce_breadcrumbs' ); function jk_woocommerce_breadcrumbs() { return array( 'delimiter' => ' / ', 'wrap_before' => '<nav class="woocommerce-breadcrumb" itemprop="breadcrumb">', 'wrap_after' => '</nav>', 'before' => '', 'after' => '', 'home' => _x( 'Home', 'breadcrumb', 'woocommerce' ), ); }
What I don’t know is how to add the h1 heading so that it is solely assigned to the last element (I do not want the whole breadcrumb be h1, just the last element).
I am grateful for your support – Thanks!
The page I need help with: [log in to see the link]
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘How to make the last breadcrumb element a H1 heading?’ is closed to new replies.