Site logo

Archived topic

breadcrumbs only on product page

7 replies · Started by johnaps on December 14, 2019

Viewing posts 1–8 of 8

Hello,
Is it possible to show breadcrumbs only on product pages?
Amazon has done it somehow, is it possible with gp?

Hi there,

if you deactivate the Woocommerce Breadcrumbs in Customizer > Layout > Woocommerce then you can use a Hook Element to add this code:

<?php woocommerce_breadcrumb(); ?>

Select the woocommerce_breadcrumb hook.
Check Excecute PHP.
And on the Display Rules select Product > All Products.

i implemented the above code as you instructed cleared cache but i am not getting breadcrumps on product pages...

Can you clear and disable the caching plugin first while we are assisting?

unfortunatelly i am on kinsta so they are responsible for caching which i cant disable but i have cleared cache many times...

Can you confirm that Execute PHP is checked?

What if you try the woocommerce_before_single_product hook?

ITS ALL good now, thank you!!!

No problem :)

This archived topic is closed to new replies.