Breadcrumbs giving 404 on Woocommerce pages

This topic has 6 replies, 3 voices, and was last updated 1 months, 1 weeks ago ago by Andrew Mitchell

  • Avatar: Quixotic
    Quixotic
    Participant
    August 8, 2024 at 14:02

    Good day

    I have placed the below code for the website breadcrumbs to display on all pages:

    add_action(‘elementor/page_templates/header-footer/before_content’, function() {
    do_action(‘etheme_page_heading’);

    However, on the shop pages for products, we get a 404 page when clicking on the breadcrumb product category: shop/%product_cat%/

    Our product permalink is also set as Shop base with category.

    I have tested this issue with the default WordPress theme and also deactivated plugins, yet it still remains.

    The breadcrumb in the Woocommerce catalog shows:
    Home > Product > then the product name

    It is the Product section that provides a 404, it only says “Product” and does not display the category title

    Can you maybe assist with this?

    Regards

    5 Answers
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    August 8, 2024 at 14:24

    Hello Quixotic,

    Thank you for using our theme.

    “I have tested this issue with the default WordPress theme and also deactivated plugins, yet it still remains.” – Based on your findings, it appears that the problem persists independently of our theme. We are committed to assisting with issues directly related to our theme’s functionality
    For the issue at hand, we recommend reaching out to WooCommerce support for more specialized assistance – https://wordpress.org/support/plugin/woocommerce/

    Thank you for your understanding.

    Best Regards,
    8Theme’s Team

    Avatar: Quixotic
    Quixotic
    Participant
    August 8, 2024 at 14:41

    Reverted to the default WordPress theme again, and ensured breadcrumbs had been enabled. The links for breadcrumbs are displayed and no errors are presented – it displays differently but works. So it seems it might be related to the Xstore theme

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    August 8, 2024 at 15:15

    Hello Quixotic,

    In this case, please provide videos of the problem and the correct work + temporary wp-admin access. We need to take a closer look.

    Best Regards,
    8Theme’s Team

    Avatar: Quixotic
    Quixotic
    Participant
    August 8, 2024 at 15:45

    I have attached the details under the private content area

    Please contact administrator
    for this information.
    Files is visible for topic creator and
    support staff only.
    Avatar: Andrew Mitchell
    Andrew Mitchell
    Support staff
    August 9, 2024 at 14:09

    Hello, Quixotic,

    I hope this message finds you well. I would like to address a couple of points regarding the integration and functionality of custom code with our themes:

    1) Could you please clarify how you tested your custom code with the default theme, given that the action do_action('etheme_page_heading') is specifically designed to work only with the XStore theme? It appears that this function ceases to operate when the theme is deactivated.

    2) We advise against using custom code to add breadcrumbs to all pages. Instead, we recommend utilizing the XStore Elementor Header Builder, which allows for a more streamlined and visually consistent integration of breadcrumbs across your site. For further details, please refer to the screenshots provided.

    Thank you for your attention to these matters. Should you have any further questions or require additional assistance, please do not hesitate to contact us.

    Best Regards,
    8Theme’s Team

    Files is visible for topic creator and
    support staff only.
  • Viewing 6 results - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.Log in/Sign up

8theme customization service
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.