Site logo

Archived topic

Product page breadcrumb

7 replies · Started by roadlink on April 25, 2021

Viewing posts 1–8 of 8

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.

This archived topic is closed to new replies.