Hello @zax007
Yep, this is correct because the breadcrumb detects the article page and assigns it the “Blog” text. To change this, you’ll need to edit the translation files using a little plugin called Loco Translate, which lets you edit these files and adds zero performance overhead — or you can use an external tool. The string should be found under the “theme” strings — https://ibb.co/xGpQ170. And the final result looks like this — https://ibb.co/SdLVMS2
Hope this helps. 🙂
Thanks.
As additional information, you can also use a little filter that we have implemented to automatically modify these, in a technical way, which gives you more control over the breadcrumbs items. Example usage below.
add_filter(
'blocksy:breadcrumbs:items-array',
function ($items) {
if (is_single()) {
$items[1]['url'] = 'https://url-to-blog.com';
$items[1]['name'] = __('Blog', 'blocksy');
$items[2]['name'] = get_the_title();
return $items;
}
return $items;
}
);
Thread Starter
Zax
(@zax007)
Thanks, I will most likely use your second answer as workaround (hopefully temporarily), but I think that its more of a bug than feature and should be passed to dev team for fixing.
For example switching to Breadcrumb NavXT engine detects the page name correctly, but I would rather not use additional dependencies.
Hello @zax007
I’ll definitely do some research and note this in our improvements list, but for now the snippet should be sufficient for your needs.
Thanks again!
Thread Starter
Zax
(@zax007)
I noticed that it happens only on main BLOG page, nested Breadcrumbs on each individual posts has the correct custom blog page name, ie: Home > News > Post
I fixed this issue with this code snippet:
add_filter(
'blocksy:breadcrumbs:items-array',
function ($items) {
if (blocksy_is_page()) {
$items[1]['name'] = get_queried_object()->post_title;
return $items;
}
return $items;
}
);
-
This reply was modified 3 years, 11 months ago by
Zax.
Hello @zax007
Glad the snippet works for you. The issue has been noted down in our improvements list and I’m hopeful the developers will change this behaviour in the near future. 🙂
Thanks again!
Scratch that. Our developers have just informed me that this behaviour has been changed in the latest public update. Can you remove the snippet and give this flow a shot? It should be working correctly now.
Thanks. 🙂
-
This reply was modified 3 years, 11 months ago by
Eduard.
Thread Starter
Zax
(@zax007)
Yes thanks, its fixed in latest update.
Perfect! Great to hear that 🙂
Have a good rest of the week!