Home › Forums › Calendar Products › Events Calendar PRO › Month View not showing
- This topic has 6 replies, 2 voices, and was last updated 10 years, 11 months ago by
Geoff.
-
AuthorPosts
-
May 26, 2015 at 5:15 pm #965263
Nicole
Participanthi,
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!May 26, 2015 at 5:19 pm #965264Nicole
Participantedit: it doesn’t work on tablets either.
May 27, 2015 at 12:52 pm #965416Geoff
MemberHi 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!
GeoffMay 28, 2015 at 1:23 pm #965854Nicole
Participantthis 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.
May 28, 2015 at 2:09 pm #965870Geoff
MemberHi 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!
GeoffMay 28, 2015 at 2:16 pm #965873Nicole
Participantok, thank you. i will ask the client what she wants to do.
May 28, 2015 at 3:05 pm #965884Geoff
MemberSure 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
-
AuthorPosts
- The topic ‘Month View not showing’ is closed to new replies.
