This topic has 6 replies, 3 voices, and was last updated 4 months, 1 weeks ago ago by Andrew Mitchell
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
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
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
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
I have attached the details under the private content area
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
You must be logged in to reply to this topic.Log in/Sign up