Tagged: breadcrumbs
Hello, Is there a way I can remove the ‘Blog’ link from the breadcrumbs only? I could remove home by following another thread.
Currently: You are here:News/Blog/Events/BPS Starts New Academic Year Online
How I want it:
You are here:News/Events/BPS Starts New Academic Year Online
The ‘Blog’ link and any / completely gone.
Link to website in the private content section.
Have used this code so far:
add_filter(‘avia_breadcrumbs_trail’, ‘avia_breadcrumbs_args_mod’, 10, 2);
function avia_breadcrumbs_args_mod($trail, $args){
unset($trail[0]);
return $trail;
}
Thanks,
Suums
Hey Sumeru,
So to clarify use you just want news/events
Best regards,
Jordan Shannon
Yes that’s correct.
Hi @Jordan – any luck?
Regards,
Suums
Hi,
Apologies for the delay, add this to quick css:
.breadcrumb-trail span:nth-child(4),
.breadcrumb-trail span:nth-child(5){
display:none!important;
}
Best regards,
Jordan Shannon