-
AuthorPosts
-
June 3, 2022 at 3:27 am #1353977
I’ve searched and attempted multiple recommendations to change the breadcrumb for the events calendar page on my site – individual events and categories display fine:
You Are Here: Home / Events / Event Name
You Are Here: Home / Events / Category Namebut the main calendar page displays:
You Are Here: Home / Events / Events
How do I get rid of the second “events” so that it just displays:
You Are Here: Home / Events
This is the page in question: https://www.crossroadspca.net/events/
Thanks in advance.
martin
June 4, 2022 at 2:39 am #1354086Hey Martin,
Thank you for the inquiry.
You can use this filter in the functions.php file to remove the duplicate breadcrumb trail.
add_filter( 'avia_breadcrumbs_trail', 'avia_breadcrumbs_trail_mod', 50, 2 ); function avia_breadcrumbs_trail_mod( $trail, $args ) { // remove duplicate events trail if ( tribe_is_events_home() ) { unset ($trail[1]); } return $trail; }
Please make sure to purge the cache after adding the filter.
Best regards,
IsmaelJune 6, 2022 at 7:23 pm #1354322Thanks Ismael – I added the code and purged my browser cache – still see double events: https://www.crossroadspca.net/events/month/
Any other ideas?
Martin
June 9, 2022 at 4:59 am #1354583Hi,
Thank you for your patience, please try this filter instead:add_filter( 'avia_breadcrumbs_trail', 'avia_breadcrumbs_trail_mod', 50, 2 ); function avia_breadcrumbs_trail_mod( $trail, $args ) { // remove duplicate events trail if ( tribe_is_events() ) { unset ($trail[1]); } return $trail; }
If this doesn’t help please include an admin login in the Private Content area so we can be of more assistance.
Best regards,
MikeJune 10, 2022 at 2:55 pm #1354814That second one jacked things up…
June 10, 2022 at 2:57 pm #1354815This reply has been marked as private.June 10, 2022 at 2:58 pm #1354816This reply has been marked as private.June 11, 2022 at 12:46 pm #1354904June 11, 2022 at 2:03 pm #1354906Strange – Came up for me fine – can you please try again? thanks
June 11, 2022 at 2:34 pm #1354907Hi,
Thank you, it worked this time and I was able to login, but the theme editor is not available for me so I can’t edit the child theme functions.php to adjust the filter above, please enable or include FTP access so we can adjust the filter.Best regards,
MikeJune 14, 2022 at 6:32 pm #1355232Info provided
June 16, 2022 at 4:00 am #1355418Hi,
Thank you for the login info.
We adjusted the code in the functions.php file a bit. The duplicate trail has been removed.
add_filter( 'avia_breadcrumbs_trail', 'avia_breadcrumbs_trail_mod', 50, 2 ); function avia_breadcrumbs_trail_mod( $trail, $args ) { // remove duplicate events trail if ( tribe_is_month() && ! is_tax() ) { unset ($trail[1]); } return $trail; }
Best regards,
Ismael -
AuthorPosts
- You must be logged in to reply to this topic.