Tagged: 404 error, breadcrumbs
-
AuthorPosts
-
September 26, 2018 at 7:43 am #1014565
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!!September 26, 2018 at 9:19 am #1014600Hey 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,
PeterSeptember 26, 2018 at 10:57 pm #1015010wow, that was quick!!! Thank you so much for the great support!!! You guys are awesome!
September 27, 2018 at 8:15 am #1015154Hi,
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,
RikardNovember 8, 2018 at 9:11 am #1031140Sorry for the late reply – go ahead and close it!
November 9, 2018 at 5:41 am #1031522 -
AuthorPosts
- The topic ‘"Auto Draft" in Breadcrumbs’ is closed to new replies.
