M
M
mUchenik2016-09-30 21:09:55
PHP
mUchenik, 2016-09-30 21:09:55

How to install breadcrumbs in woocommerce?

Friends, hello everyone!
Here is the question:
In which woocommerce files and places do you need to register this code from Yoast SEO:

if ( function_exists('yoast_breadcrumb') ) {
  yoast_breadcrumb('<p id="breadcrumbs">','</p>');
}

to remove bread crumbs.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Denis Petrovsky, 2016-10-01
@Redjek

in theory
/woocommerce/templates/global breadcrumb.php
If the theme is not fancy like Betheme, Porto, etc.,
create a woocommerce folder in the root folder of your active theme, in it the global folder and copy the breadcrumb.php file there
and paste the code .. BUT! it all depends on the theme and how it is cut, and if the hooks are redefined, etc., it can turn out so that the breadcrumbs are also written in the theme header

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question