[Resolved] breadcrumbs only on product page

Home Forums Support [Resolved] breadcrumbs only on product page

Home Forums Support breadcrumbs only on product page

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1104624
    johnaps

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

    #1104837
    David
    Staff
    Customer Support

    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.

    #1105091
    johnaps

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

    #1105122
    Leo
    Staff
    Customer Support

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

    #1105162
    johnaps

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

    #1105273
    Leo
    Staff
    Customer Support

    Can you confirm that Execute PHP is checked?

    What if you try the woocommerce_before_single_product hook?

    #1105506
    johnaps

    ITS ALL good now, thank you!!!

    #1106002
    Leo
    Staff
    Customer Support

    No problem 🙂

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.