Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1223213

    Hello,

    Would you please show me how to turn on the breadcrumb trail on my WooCommerce Shop Category and Product pages without turning it on for all other pages? I have the Enfold global breadcrumb setting turned off currently. This seems to override the WooCommerce default breadcrumb. When I change the Shop Page or Product Page setting to “Display only breadcrumbs” it doesn’t work.

    I placed this code from one of your other help threads into my Child Theme functions.php file and it also didn’t work:
    add_action( ‘woocommerce_before_main_content’, ‘woocommerce_breadcrumb’, 20, 0);

    However, when I place the above code directly into the Enfold Theme functions.php file a breadcrumb displays on the shop pages in the upper right corner. I’m not sure why it works in the Enfold file and not the Enfold Child file.

    Ideally, I’d like the breadcrumb to only be on the Category and Product Pages (right justified) in this format:
    Shop | Category Title | Product Title

    Thank you!

    John

    #1224113

    Hey jgdoyle1,

    Best regards,
    Victoria

    #1224123

    Hi Victoria,

    Yes, I got the breadcrumbs working but I had to turn on the Enfold breadcrumbs and then block them on each individual page that I didn’t want them. Instead I would have preferred to have the Enfold breadcrumbs off and then turn the breadcrumbs on for just the Shop pages. I was looking for a script to do that.

    It seems with WooCommerce when you turn off the Enfold breadcrumbs and turn on the Shop page breadcrumbs it doesn’t recognize it. Is there a script to remedy this issue?

    Thanks!
    John

    #1224169

    Hi John,

    Well, you can copy the function avia_title from /functions-enfold.php to your child theme functions.php and modify it there to show up only on shop pages.
    Image 2020-06-19 at 22.19.37.png

    Best regards,
    Victoria

    #1224175

    Thanks Victoria. PHP customization is a bit over my head but maybe I can find someone to assist me. Best regards, John

    #1224180

    Hi,

    You can use the following service:

    Best regards,
    Jordan Shannon

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