• Resolved welsh10

    (@welshlamb10)


    Hi,

    Since the latest update the list view on mobile does not work. Heres the snippet I was using:

    /*
    * The Events Calendar - Redirect Mobile Users to List View
    * @version 3.9
    * 
    * @link https://theeventscalendar.com/support/forums/topic/forcing-list-view-on-mobile-only/
    */
    add_action( 'template_redirect', 'tec_mobile_template_redirect' );
    function tec_mobile_template_redirect() {
    	if( tribe_is_month() && wp_is_mobile() ) {
    		wp_redirect( tribe_get_listview_link() );
    		exit();
    	}
    }

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hey there @welshlamb10!

    Thanks for reaching out.

    It is odd that this would happen after The Events Calendar updated. Could you run through our testing for conflicts guide and post a link to the site in question?

    Thanks,
    Ed

    Hey there! This thread has been inactive for a while so we’re going to go ahead and mark it Resolved. Please feel free to open a new thread if any other questions come up and we’d be happy to help.

    Thanks
    Courtney ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘List view on Mobile’ is closed to new replies.