Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #175083

    How can I remove the text “Auto Draft” from my breadcrumbs? It appears whenever viewing post archives.
    e.g. I get: Home / News / Auto Draft / 2013 / September
    when viewing the September 2013 new post archives.

    #175562

    Hello Pictori!

    Please create me an admin account and post the login credentials as private reply. I’ll look into it.

    Regards,
    Peter

    #175586
    This reply has been marked as private.
    #175600

    Hello!

    I’m not sure what causes the issue but something adds a page (called “auto draft”) to the database. I tried to delete the page but then it shows up in the breadcrumb again. I now solved the issue with a small function which removes the “Auto Draft” link from the breadcrumb. I added the code to the child theme 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');
    

    Cheers!
    Peter

    #175610

    Thanks Peter, that’s great!
    Loving the support given by Kreisi themes! Can’t possibly buy any other now!
    Thanks again,
    Victoria

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Enfold Breadcrumbs – Auto Draft text’ is closed to new replies.