Tagged: breadcrumb, events calendar
Hello, I saw the thread at: https://kriesi.at/support/topic/events-calendar-breadcrumb-shows-events-twice/ and tried everything listed but that didn’t solve the issue. What else can I do?
Thank you for your excellent support team!
Hey rlhinirv57!
Thank you for using Enfold.
Please add this in the functions.php file:
add_filter( 'avia_breadcrumbs_trail', 'avia_breadcrumbs_trail_mod', 50, 2 );
function avia_breadcrumbs_trail_mod( $trail, $args ) {
if ( is_archive('tribe_events') && $trail['trail_end'] == 'Events') {
unset($trail[1]);
}
return $trail;
}
Cheers!
Ismael
Thanks Ismael,
Any particular place that should be added? And, is it okay to add this in a child theme function file?
Asking because I did add this snippet in the functions.php file of my child theme and got a white screen of death the moment I saved the document and navigated away. Fortunately I had a backup copy and FTP access so I re-uploaded the previous functions.php file and the site was immediately restored.
Kind regards,
Rhonda
Hi,
Please copy the code directly from this forum, not from your email. Yes, you can add it in the child theme’s functions.php file.
Best regards,
Ismael
Thanks, Ismael – that worked! Apparently, there was an extra space or something introduced previously, which resulted in the php error. My host thought the issue might have been a result of updating the version of php, but obviously not.
Best regards,
Rhonda