Tagged: 404 error, breadcrumbs
Hi,
I have the following problem. When you go to this page you’ll see …/automatisch gespeicherter Entwurf/… in my breadcrumbs, which is German and stands for auto draft. When you click on it, you’ll get an 404 error. I have absolutely no idea what is going on. Found two other people having the same problem in this forum, but for one person the problem dissolved itself and the other one was able to get rid of it by adding the following code to functions.php:
function avia_fix_breadcrumb_trail($trail)
{
foreach($trail as $key => $data)
{
if(strpos($data, 'Auto Draft') !== false) unset($trail[$key]);
}
return $trail;
}
add_filter('avia_breadcrumbs_trail','avia_fix_breadcrumb_trail');
Unfortunately this code doesn’t solve my problem. Any idea what might be going on?
Thank you so much for your help!!
Hey CaliBee,
I fixed it by adding this code to your child theme:
function avia_fix_breadcrumb_trail_dude($trail)
{
foreach($trail as $key => $data)
{
if(strpos($data, 'Automatisch gespeicherter Entwurf') !== false) unset($trail[$key]);
}
return $trail;
}
add_filter('avia_breadcrumbs_trail','avia_fix_breadcrumb_trail_dude');
Best regards,
Peter
wow, that was quick!!! Thank you so much for the great support!!! You guys are awesome!
Hi,
Great, glad we could help and thanks for the kind words :-)
Please let us know if you should need any further help on the topic or if we can close it.
Best regards,
Rikard
Sorry for the late reply – go ahead and close it!