S
S
serg_marinkov2021-04-16 19:12:39
WooCommerce
serg_marinkov, 2021-04-16 19:12:39

How to display WooCommerce breadcrumbs?

There is a site on the WordPess + WooCommerce engine.
You need to display WooCommerce breadcrumbs on product categories and product pages.
Tell me what and where to register for this?
I tried to add the following code to the functions.php file:

add_action( 'woocommerce_before_main_content', 'woocommerce_breadcrumb', 20 );

But the breadcrumbs still don't come out.
We managed to add other breadcrumbs to regular pages. To do this, I added a function to functions.php and an output function to page.php.
But how do you display crumbs in product categories and product pages?

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