• Resolved robotor

    (@robotor)


    Looking for instructions on how to switch the calendar view to list view AUTOMATICALLY when viewing on mobile.

    I know the calendar works on mobile, but the list view is a better user experience.

    I have tried copying the calendar theme mobile file (views/month/mobile.php) into my theme for modification, and pasting in list view code, but that’s not really working as the list view code is spread out over a couple of files.

    A search did turn up this:

    if( wp_is_mobile() ) {
    	wp_redirect( tribe_get_upcoming_link() );
    }
    ?>

    but that did nothing – perhaps I’m putting it in the wrong spot?

    • This topic was modified 6 years, 10 months ago by robotor.
    • This topic was modified 6 years, 10 months ago by robotor.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Jennifer

    (@jentheo)

    Hello there,

    Thanks for reaching out!

    Our themer’s guide has some great info on making customizations like this to our plugins, and I think this post with a similar solution should be helpful to you as well!

    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. 🙂

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to automatically switch calendar view to list view on mobile?’ is closed to new replies.