Force list for Mobile
-
Is there any way to force the Calendar to go into list by default for mobile, or better yet only allow list mode on mobile.
I am using “Responsive” theme, but on mobile the calendar tends to stretch off of the page of the mobile browser when in month mode (picture of calendar).
Thanks for any assistance in advance!
Site, w/Calendar Page: http://t504.untergrunddrone.us/calendar/
-
Hi UntergrundDrone,
Definitely possible but it’s the sort of customization we cannot help with here on the free support forum. We do plan on releasing a plugin to help with issues like this quite soon, though, so please do stay tuned 🙂
Thanks!
Barry I’d also like to UntergrundDrone saying that the Calendar cuts off Friday through Sunday on mobile. Since my calendar functions as a place to list community events, it rendered nearly useless to the public since the weekend events are not visible. Can you give anymore information on how soon “quite soon” may be?
I’m afraid we don’t comment on release dates to avoid setting expectations – it’s not uncommon for schedules to change in order to facilitate the unforeseen and we wouldn’t like to disappoint.
I did just look at a thread where someone used a simple workaround in the form of detecting mobile requests with wp_is_mobile() followed by a redirect, so that might be an approach you could investigate further,
Hi. I had the same issue that I wanted the calender to fit when viewed on a mobile device. It’s a really simple solution based upon wp_is_mobile() which Barry told – I hope I am allowed to share this solution, not breaking any licenses?
The solution:
Go into Plugins – Editor and find “the-events-calendar/views/month.php” within the plugin (The Events Calendar).Replace <?php tribe_get_template_part(‘month/content’); ?> with:
<?php if ( wp_is_mobile() ) { tribe_get_template_part( 'list/content' ); } else { tribe_get_template_part('month/content'); } ?>It worked out for me perfectly. What happens is that it’s asking if the device is a mobile or not. If it’s a mobile it’s showing the list, if not it’s showing the calender.
Enjoy! 🙂
Definitely feel free to share the knowledge 🙂
Barry,
I do hope to get a full version of this plugin very soon – its capabilities are fantastic. The site is for a Boy Scouts Troop, so before we could commit to buying really anything I need to get the concept up and running (A big thank you to nikkokick for that!).
Thanks for the information, and for a great plugin!
Barry,
I do hope to get a full version of this plugin very soon – its capabilities are fantastic. The site is for a Boy Scouts Troop, so before we could commit to buying really anything I need to get the concept up and running (A big thank you to nikkokick for that!).
Thanks for the information, and for a great plugin!
Thank you nikkokick! This solved the problem for me as well.
Sounds good 🙂
UntergrundDrone: do remember that if the Boy Scouts Troop qualifies as a charity you may be eligible for a free copy of our PRO plugin (details here – I’m not sure if you’ll qualify, but just in case).
This fix was working for me at first but then it crapped out. Now it only shows February events but has march at the top. Has anyone else had this problem?
I just look at the original posters calendar on mobile and it’s doing the same thing. 🙁
Howdy Katrink,
Are you seeing a duplicate with nikkokick’s solution? If so I would just double check that there are not multiple calls to tribe_get_template_part(‘month/content’); nor tribe_get_template_part( ‘list/content’ ); within /the-events-calendar/views/month.php.
I hope I did not misunderstand you there, and that this helps you. I think you will be excited when we release the next version of our plugins, we have a few really cool improvements relating to this that I for one am looking forward to.
– Brook
I think I might have worded the above poorly. It’s weird, it’s only pulling up one event, not a list of them. Before when I clicked on it it said March at the top then under that it had one Feb event listed. Now it’s showing an March event (which is good Yay!), but is it possible to show a full list of events for the full month?
If I push on the list view everything loads for the month. Is it possible to change it to show upcoming events?
http://www.edmontonpagan.com/1.PNG
http://www.edmontonpagan.com/2.PNG
http://www.edmontonpagan.com/3.PNGGood news all. Version 3.5 of our plugin was just released, and it includes a responsive design from the ground up: http://tri.be/march-release-responsive-and-recurrance/
Here is a full list of features in the latest release: http://wordpress.org/plugins/the-events-calendar/changelog/
The topic ‘Force list for Mobile’ is closed to new replies.