Posted: December 20, 2013 at 1:44 am
|
Hello, Our events are all missing from the calendar. It looks fine on desktop, but when viewed on mobile everything is gone. |
|
Site: trtacademy.com/upcoming-events/event-calendar/ The problem is just spotted today. Not sure what happened. Could it be the calendar update? I’ve done a reset, re-activation of the calendar. Still doesn’t seem to work on mobile. |
|
Hi, I’ll raise a developer ticket to look into this as I can confirm the issue. |
Hi there, We’re working on getting a fix ready for release. In the meantime you can add this to the bottom of your theme’s custom CSS option to fix the issue on your site:
#espresso_calendar .fc-event { } |
|
|
Thanks Dean! Hi Josh, |
|
Hi, Due to the restricted size on mobile devices we disable the titles from appearing. You could use CSS such as
#espresso_calendar .fc-event-title { however, the title will be constrained to the box size still so they will end up looking very strange. I have an idea that might work, where we disable the link but allow the tooltip to appear still, but will need to run it by the developers as it is outside of my coding knowledge.
|
|
The tooltip might be a good idea, but right now the title is constraint to the small boxes. Is there a way to increase the height of the boxes just for mobile users? |
|
Well, the @media part is a media query, so @media only screen and (max-width: 480px) { basically means it will only target devices with a screen resolution of less than 480 pixels wide, which will cover most phones. The code Josh supplied will increase the “blobs” size. |
|
Hi Dean, Is it possible to revert back to the previous setting on the previous calendar version? Everything was ok until I updated it. I could not increase the height of the calendar boxes, and the wordings on the calendar looked squashed. Thanks! |
|
Hi, Only by reverting to the previous calendar version. The latest calendar has only proved problematic in a few small cases where CSS has clashed, and we are working on making the CSS more specific to avoid these types of issues. The calendar has been improved on in a variety of ways so we don’t recommend reverting back but if you still wish to just let me know and I’ll email a copy of the previous version. |
|
Hi Dean, <pre class=”brush: css; gutter: true; first-line: 1; highlight: []; html-script: false”> I changed the height to something like 10em, but it did not increase the height of the boxes. What I wanted to achieve is to make sure people on smartphones could see the entire title on the box. Thanks Dean! |
|
You could try @media only screen and (max-width: 480px) { #espresso_calendar .fc-event-title { display: block; min-height: 4em; max-height: 40em; } } However, it will still constrain the width of the calendar to the width of the phone so the boxes will be very tall if there is a long title. |
|
Our site used to be responsive, and the calendar would look really weird on mobile. But now it is set to become unresponsive, it takes a scaled size on mobile what you would see on a PC. So I guess it’s not going to be that ugly afterall.. I tried changing max-height: 40em; but the height still didn’t change on my iPhone. I just need to increase the height by a bit more so we could continue to have a little longer titles. |
Hi trt, You’ll also need to target the parent element. As an aside, you can set max-height to none so even if you have a really long title it will still display all of it. Suggested code change follows: /* An attempt to fix calendar issue on smartphones */ |
|
|
Hi Josh, It worked, thanks! Can I also get the event timing shown on mobile too? |
Yes, something like this will override the defaults:
#espresso_calendar .time-display-block { |
|
|
That’s great, everything seems to be working fine now. Thanks Josh and Dean for your help. Really appreciate it! Happy New Year to you all! |
The support post ‘Events not showing after update’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.