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

    Hi
    How to hide “blog” in Breadcrumbs
    See image : hide part of breadcrumbs
    Thank’s

    #284775

    Hi,

    Can you post the link to your website please?

    Regards,
    Josue

    #285168

    Hi Josue
    I can’t I ‘m on xampp.
    When I create a article, the template display alway this part (blog / blog grid) on breadcrumbs. Just when I display the article, why and how to solve that.
    Best Regards
    Cyrber

    #286028

    Hey!

    Thank you for using the update.

    Remove the hierarchy between the Blog and Blog grid pages. Edit the page, look for Page Attributes > Parent setting. Add this on functions.php:

    add_filter('avia_breadcrumbs_trail', 'avia_change_breadcrumb', 10, 1);
    function avia_change_breadcrumb($trail) {
    if(is_single() && get_post_type() == "post")
    {	
    	$home 		= $trail[0];
    	$last 		= array_pop($trail);
    	unset($trail);
    	
    	$trail[0] = $home;
    	$trail[]  = $last;
    }
    return $trail;
    }

    Best regards,
    Ismael

    #337534

    ok, thank’s a lot

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Hide "blog" Breadcrumbs’ is closed to new replies.