Hi
How to hide “blog” in Breadcrumbs
See image :
Thank’s
Hi,
Can you post the link to your website please?
Regards,
Josue
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
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
ok, thank’s a lot