@princebhalani143 Can you clarify what type of page that is on? By default the WooCommerce breadcrumb will display category names without adding “collections” to the name. Would you be able to provide a link to the page you are working on?
@jessepearson Thanks for your reply, It’s WooCommerce Attributes Collection page Please have a look on https://goo.gl/b8RDGw
“Product Collections” is generated dynamically based on the category name – is “Product Collections” the exact name of one of your categories? If so, why not just rename the category to “Collections”?
Category name is supplied as Collections only, As it’s Attribute so Attribute name is supplied as “Collections” but it’s adding Product + Attribute Name in Breadcrumb
So, For other attributes I have checked it’s also coming up like Product + Attribute Name instead of Attribute name only.
@princebhalani143 – I’m confused as to how your “attributes” are being displayed within the Breadcrumbs as they’re not part of the Breadcrumbs output by default. Are you using any kind of customizations for the Breadcrumbs or a plugin that modifies its behavior? If you’re not testing this with the default Storefront theme, please also test with it.
How exactly did you create this page? It doesn’t seem to be part of the standard Shop hierarchy, is it a custom page using a shortcode or something?
https://www.powderlife.com/find/collections/entertain-in-style/
@shellbeezy: Thanks for your response, I have created all the attributes in the normal way how we’re creating in WooCommerce.
Products > Attributes > Create New Attribute > Open Created Attribute > Configure terms accordingly.
Might be theme developer created some hack, I have to check into the theme files.
I have tested on development platform using Storefront theme it’s showing normal.
If you know any overwriting method like I have mentioned before then you can suggest some hook otherwise all good, I’ll find some way and update answer here accordingly.
@princebhalani143 – this certainly looks to be something custom-developed given that it works properly with a default theme. I don’t know of a hook that could override the display of the children(only the home title), perhaps the theme is not actually using the standard filter anyways?
Hi @shellbeezy,
As of now I have supplied something like below on that page so on load it’ll remove product from the code or page.
<script>
jQuery(document).ready(function(){
$("*").contents().each(function() {
if(this.nodeType == 3)
this.nodeValue = this.nodeValue.replace("Product", "");
});
});
</script>
It’s not the perfect solution but as of now it’s working as expected.