lexxxex
Forum Replies Created
-
I talk about this think:
https://validator.schema.org/
on my website breadcrumbs is: site/category
in schema org validator is: site/shop/category
and google see is like in schema!
its not good for seoThe question is not where I insert the code.
“I have child theme Astra. Added the code in function.php”
Now its work with new code.
But now I have the same problem in schema.
On the site is site/category
In schema is site/shop/category
I need to find code which will move shop from schema.add_filter('woocommerce_get_breadcrumb', 'remove_shop_crumb', 20, 2); function remove_shop_crumb($crumbs, $breadcrumb) { $new_crumbs = array(); foreach ($crumbs as $key => $crumb) { if ($crumb[0] !== __('Shop', 'Woocommerce')) { $new_crumbs[] = $crumb; } } return $new_crumbs; }This code working
Hi @scprojectsgr!
Thank you!
I inserted you code, its worked.
After i updated wordpress, woocommerce, yoast and now its no working.
the Shop is shown in breadcrumbs.
I have child theme Astra. added code in function.phpForum: Themes and Templates
In reply to: [Chic Lite] Remove “Shop” In breadcrumbsHi! I delited Shop from breadcrumbs.
How to remove Shop from schema BreadcrumbList?Hi! I have same problem.
How did you solve the problem?
Can you share the code?