Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #739621

    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!

    #741074

    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

    #741450

    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

    • This reply was modified 7 years, 9 months ago by rlhinirv57. Reason: needed to add more information about the issue
    #743744

    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

    #744001

    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

    #744591

    Hey!

    Great! Glad it worked. Let us know if you need anything else. :)

    Regards,
    Ismael

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘More Events Calendar Breadcrumb issues’ is closed to new replies.