Remove "Products" from Shop page breadcrumb
-
Hi,
When I click “Shop” page of my page, it shows “Products” in the breadcrumb (i.e. “My Site > Shop > Products”). Is there a way to just make this show “My Site > Shop” instead?
Thanks, Jarkko
-
If ‘Products’ is a custom post type, you can disable that by unchecking the “Products Archive Display” setting in the Breadcrumb NavXT settings page.
Hello,
I use woocommerce and when I made ??the update to woocommerce2 breadcrumbs not displayed correctly.
is displayed correctly only to arrive in a product subcategory.
when choosing items to display(product in shop) breadcrumbs trail show me a wrong subcategory and a wrong product.
Ex: i am in “Magazin > Products > Polen”
[Magazin(main cat.), Products(subcat.), Polen(subcat.)]- the trail is corect;
When I choose a product from Polen category, the trail is wrong, it shows me another breadcrumb trail from another category and another product.
I use graphene theme and wp 3.5.1
Can you help me?
Thanks!Hello, mtekk.
I have similar issue than JarkkoL, but your solution doesn’t work for me.
Check this link: https://www.interventored.com/microcursos-y-talleres/
I have twice “Microcursos y Talleres” y my shop page… I would like to show only “Microcursos y Talleres” without link. How can I do that?
I think I have tried all your options of your plugin… Could you help me, please?
Thank you!
I’ll have to look into what WooCommerce is doing as this has come up several times since their last release. I haven’t had time to look into it yet, but in a few weeks I should get a chance to.
Was this ever resolved? I have the same issue. For some reason with Woocommerce your plugin wants to show an extra breadcrumb with the same link for the shop page.
For instance
Home / Shop / Products
Should be
Home / Shop
Why does it do this and how can we fix it?
Hi IkeGordon.
Well, if you check my shop page (Microcursos y Talleres), you will see that everything is ok now.
Unafortunatelly, I can’t remember what I exactly did to fix the issue, but I am quite sure that you only have to choose the correct configuration for your products in the second tab of Breadcrumb’s configuration page.
If you need it, we can check my bread’s configuration page against yours to see what diferences are.
erServi
If you’re still listening, (or anyone else, for that matter) I would love to know what you did to fix this. It’s bugging the heck out of me. Such a little thing, but so annoying. I was having almost the same issue with the Yoast SEO plugin, except that Product was showing up on every product page. At least that isn’t happening with this plugin. I agree with mtekk that this is a Woocommerce related -problem, but no one is talking about it over there.
On the html of the page I notice that the code for the Shop looks like this:
Shop ” > Products”
Where is Products coming from? Why doesn’t it just say Shop?
Anyhow, if anyone has figured out a solution for this, I’d sure appreciate if you could share it.
Thanks!
~Karen
Not sure how good solution this is, but I ended up commenting out line:
$this->do_archive_by_post_type();
from file breadcrumb_navxt_class.phpThat fixed it for me at least. Did couple of other fixes to the same file as well since for example blog pages didn’t work initially as I wanted.
Cheers, Jarkko
Thanks, Jarkko.
Do you mind telling me how you did this? I’m a novice with php. Did you just delete$this->do_archive_by_post_type();
from the page? Is that what you mean by “commenting out”?
Thanks so much for responding!
~Karen
You can delete the line or just add two forward slashes // to the beginning of the line. I prefer the latter since if you need restore that line at some point (e.g. if there are some bugs potentially caused by this change) you can just remove the forward slashes.
Thank you, again, JarkkoL for your help. Unfortunately, this doesn’t work for me. It does get rid of the “Products” link after Shop, but it also gets rid of the Category and Sub-Category links before the single Product title. I’m afraid this defeats the purpose of having the breadcrumb in the first place. But thank you for taking the time to write.
Are there any other suggestions out there?
~Karen
There were some other changes to the file I made as well which may be related. It’s been awhile I did this change (I have version 4.3.0 installed, latest is 4.4.0 I think). All the changes I made to the file were:
Replace line 952 with:if(count($this->trail)>1) { $breadcrumb->set_url(get_permalink($root_id)); }
And lines 1055-1067 with:
if(is_date()) { $this->do_archive_by_date(); $this->add(new bcn_breadcrumb('Blog', $this->opt['Hpost_page_template'], array('post-' . $post->post_type, 'current-item'), '/blog/')); } else if(is_post_type_archive() && !isset($type->taxonomy)) { // $this->do_archive_by_post_type(); } //For taxonomy based archives else if(is_category()) { $this->do_archive_by_term(); $this->add(new bcn_breadcrumb('Blog', $this->opt['Hpost_page_template'], array('post-' . $post->post_type, 'current-item'), '/blog/')); } else if(is_tag() || is_tax()) { $this->do_archive_by_term(); }
For the reference this is the website I was developing: https://www.lallus.com
Hello, kjhatzi (and JarkkoL)
Sorry, I was unable to respond before.
Well. First of all, I have changed the url of the shop page I have mentioned before to this.
As I said, you can see that everything is ok in my page. I can swear that I have only done changes in the configuration of Breadcrumb plugin. I have no changed a single line of code.
Also, I have Yoast SEO, but with its <i>breadcrumbs</i> deactivated.
The only thing is that I have changed the word “Products” with “Microcursos” everywhere, thanks to the CodeStyling Localization plugin (also for the WP admin area pages).
You can see my Breadcrumb’s settings in the 4 screenshots that I have uploaded to imageshack (in spanish and with “Microcursos” instead “Products”, but every setting is in the same place in english, obiously):
General Tab
Entry Types Tab
Taxonomies Tab
Miscellaneous Tabkjhatzi , I hope, with that screenshots, you can correctly configure your breadcrumb settings.
Regards,
Sergio
- The topic ‘Remove "Products" from Shop page breadcrumb’ is closed to new replies.