Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #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 Name

    but 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

    #1354086

    Hey 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,
    Ismael

    #1354322

    Thanks Ismael – I added the code and purged my browser cache – still see double events: https://www.crossroadspca.net/events/month/

    Any other ideas?

    Martin

    #1354583

    Hi,
    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,
    Mike

    #1354814

    That second one jacked things up…

    #1354815
    This reply has been marked as private.
    #1354816
    This reply has been marked as private.
    #1354904

    Hi,
    Thank you for your patience, but your site doesn’t seem to be online, please check.
    2022-06-11_001.jpg
    2022-06-11_002.jpg

    Best regards,
    Mike

    #1354906

    Strange – Came up for me fine – can you please try again? thanks

    #1354907

    Hi,
    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,
    Mike

    #1355232

    Info provided

    #1355418

    Hi,

    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

Viewing 12 posts - 1 through 12 (of 12 total)
  • You must be logged in to reply to this topic.