• Resolved doublehead73

    (@doublehead73)


    Hi!
    The company I am working for bought the pro version of your plugin.
    Question: I would like it to display as list on mobile, and calendar on Desktop. I don’t see that as a simplified feature, is there a suggested way to code it via pagebreaks or something?

    Thanks!!
    -Shaun

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

    Thanks for reaching out — that’s a great question, I can help with that 🙂

    This can be easily done via a snippet in your child theme’s functions.php file →

    /*
    * The Events Calendar - Redirect Mobile Users to List View
    * @version 3.9
    * 
    * @link http://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();
    	}
    }

    Take care,
    Ed 🙂

    Hey there,

    Since this thread has been inactive for a while, I’m going to go ahead and mark it as resolved. Don’t hesitate to create a new thread any time you help again!

    Ed 🙂

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Display control mobile/vs/desktop’ is closed to new replies.