Archived topic
Product page breadcrumb
7 replies · Started by roadlink on April 25, 2021
Hi,
I have read 50 pages but couldn't find solution. This is the most close reply.
David prepared a good code here.
https://generatepress.com/forums/topic/how-to-hide-the-title-part-in-the-breadcrumb-im-using-yoast-seo/#post-614239
I want to remove product title from breadcrumb but want to keep hyperlink for last category.
I guess this is something like that but for yoast.
How about default woocommerce?
Hi there,
it seems you would need to copy over the breadcrumb.php into your child theme and edit the function itself - see the reply on this article:
Hi David,
I also find similar article and worked very well. https://stackoverflow.com/a/63402503/14123615
The only issue is I can't make it work with child theme.
I did some changes in breadcrumb.php file.
When I add that file to here it works and override the woocommerce template.
/public/wp-content/themes/generatepress/woocommerce/global
but if I put it under child theme, it doesn't work.
/public/wp-content/themes/generatepress_child/woocommerce/global
I tried to add this code to wp-config.php but didn't help.
define('WC_TEMPLATE_DEBUG_MODE', false);
Are you using the Child Theme for any other customizations ? And if so i assume they are working correctly ?
Hi David,
I am using child theme for YITH wishlist templates, Woocommerce composite products templates and they are working OK.
Very odd - i just tried it on a test site and it worked for me.
Try clearing any caches including server page caches - to see if thats the issue.
If still a problem - try removing the:
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
From your breadcrumb.php
Dear David,
Thank you for reply.
It is weird that I tried again and it worked.
I afraid It was cache issue from server side. Which I should check first.
Really sorry to take your time.
Have a nice day.
No apologies necessary - glad to hear you got it working.