Change TEC layouts to full width, especially in photo, map, & calendar views.

Home Forums Calendar Products Events Calendar PRO Change TEC layouts to full width, especially in photo, map, & calendar views.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1194820
    Mike
    Participant

    Is there a way to switch TEC to full width view, similar to this old code?:

     function tribe_make_events_fullwidth($classes) {
            if ( in_array('full-width', $classes) ) return $classes;
            if ( tribe_is_event_query() && ! is_singular() ) $classes[] = 'full-width';
            return $classes;
    }
    
    add_filter('body_class', 'tribe_make_events_fullwidth');

    It no longer works, but is exactly what I am looking to do.

    Thanks!

    #1195447
    Nico
    Member

    Hey Mike,

    Thanks for getting in touch with us! I’ll help you getting this right 🙂

    Let me start by saying a gave the snippet a try and it’s working as intended. By this I mean it’s making sure the full_width class is added to the body for calendar pages that are not single event page.

    Maybe this was a theme specific solution? Can you elaborate a bit more on what you are trying to achieve and send sample links of ‘full width’ in your site?

    Please let me know about it,
    Best,
    Nico

    #1205289
    Support Droid
    Keymaster

    Hey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.

    Thanks so much!
    The Events Calendar Support Team

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Change TEC layouts to full width, especially in photo, map, & calendar views.’ is closed to new replies.