Month View not showing

Home Forums Calendar Products Events Calendar PRO Month View not showing

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #965263
    Nicole
    Participant

    hi,
    this is a bump of a question I had posted under Filter Bar, but the admin said she moved it over here. I havent been able to find any update. In phone view, I cant view as Month. It defaults to list bc I added a function to do so, but I still want people to be able to view as Month if they wish. It also has an option to view as Day, and that does filter. thank you!

    #965264
    Nicole
    Participant

    edit: it doesn’t work on tablets either.

    #965416
    Geoff
    Member

    Hi Nicole!

    Sorry for the trouble here. Just curious, what function did you add to default your site to List View? I am guessing that is preventing Month View from being accessible at all. If so, it may need to be rewritten to account for mobile devices.

    I do want to note that we’re fairly limited to how much we can support custom development questions like this in the forum, but I’ll be happy to point you in the right direction if I can. 🙂

    Cheers!
    Geoff

    #965854
    Nicole
    Participant

    this was the code that i added to my month.php. when i commented it out, i could then view month view as well, but it does not come up first by list:

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

    thanks.

    #965870
    Geoff
    Member

    Hi Nicole,

    Oh, this is definitely a little tricky. Although this is outside the level of support I can provide here, I can tell that the snippet will always redirect mobile visitors to List View.

    I think the only existing feature to help with this is to set the default view of your calendar under Events > Settings > Display. That will set the default view to be consistent across all devices.

    To get to a point where you can switch views based on the device being used, you may need to use the wp_is_mobile() condition to return specific layout components rather than redirecting to another URL.

    Sorry I don’t have a solid answer for you here, but I hope this at least helps get you started in the right direction.

    Cheers!
    Geoff

    #965873
    Nicole
    Participant

    ok, thank you. i will ask the client what she wants to do.

    #965884
    Geoff
    Member

    Sure thing–sorry again that I didn’t have something more solid to offer here. Let us know if any other questions pop up and we’d be happy to help. 🙂

    Geoff

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Month View not showing’ is closed to new replies.