Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #312334

    I’ve followed the instructions from “the dude” to get the title working on pages powered by The Events Calendar (https://gist.github.com/InoPlugs/5442030) and it works fine.

    Just wondering if anyone has a similar tip to get the breadcrumbs working so that it includes the Events path in the breadcrumbs.

    Thanks in advance

    #312429

    Hi scottybowl!

    Tbh I didn’t test the code with the latest version of Enfold and Events Calendar on my test server but you can try to insert it into the enfold/functions.php or child theme functions.php file:

    
    if(!function_exists('avia_modify_event_breadcrumb'))
    {
        function avia_modify_event_breadcrumb($trail)
        {
            if(get_query_var('post_type') == 'tribe_events')
            {
                $newtrail = array('<a href="#">Events</a>');
                array_unshift($newtrail, $trail[0]);
                if(is_single()) $newtrail['trail_end'] = $trail['trail_end'];
                $trail = $newtrail;
            }
    
            return $trail;
        }
    
        add_filter('avia_breadcrumbs_trail','avia_modify_event_breadcrumb');
    }
    

    Cheers!
    Peter

    #319094

    Thanks! Very helpful :)

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Breadcrumbs & The Event Calendar’ is closed to new replies.