Support

Home Forums Events Calendar Add-on Events not showing after update

Events not showing after update

Posted: December 20, 2013 at 1:44 am

Viewing 14 reply threads


TRT

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.


TRT

December 20, 2013 at 1:46 am

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.


Dean

December 20, 2013 at 2:02 am

Hi,

I’ll raise a developer ticket to look into this as I can confirm the issue.


Josh

  • Support Staff

December 20, 2013 at 12:31 pm

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:


@media
only screen and (max-width: 480px) {

#espresso_calendar .fc-event {
min-height: 4em;
max-height: 4em;
}

}


TRT

December 21, 2013 at 12:44 am

Thanks Dean!

Hi Josh,
Tried the css code. Only the box came out but no texts appeared.


Dean

December 22, 2013 at 11:11 pm

Hi,

Due to the restricted size on mobile devices we disable the titles from appearing.

You could use CSS such as


@media
only screen and (max-width: 480px) {

#espresso_calendar .fc-event-title {
display: block;
}
}

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.

  • This reply was modified 11 years ago by Dean. Reason: code format edit


TRT

December 22, 2013 at 11:43 pm

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?


Dean

December 23, 2013 at 12:54 am

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.


TRT

December 26, 2013 at 8:04 pm

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!


Dean

December 27, 2013 at 2:12 am

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.


TRT

December 27, 2013 at 2:27 am

Hi Dean,
I am trying to combine both of the css codes but could not fix it still.

<pre class=”brush: css; gutter: true; first-line: 1; highlight: []; html-script: false”>

@media
only screen and (max-width: 480px) {
#espresso_calendar .fc-event-title {
display: block;
min-height: 4em;
max-height: 4em;
}
}

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!


Dean

December 27, 2013 at 5:16 am

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.


TRT

December 27, 2013 at 8:41 pm

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.


Josh

  • Support Staff

December 30, 2013 at 9:31 am

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 */

@media
only screen and (max-width: 480px) {
#espresso_calendar .fc-event-title {
min-height: 4em;
max-height: none;
display:block;
}
#espresso_calendar .fc-event {
max-height: none;
}

}


TRT

December 30, 2013 at 11:41 am

Hi Josh,

It worked, thanks! Can I also get the event timing shown on mobile too?


Josh

  • Support Staff

December 30, 2013 at 7:34 pm

Yes, something like this will override the defaults:


@media
only screen and (max-width: 540px) {

#espresso_calendar .time-display-block {
visibility: visible;
display: block;
}
}


TRT

December 30, 2013 at 9:54 pm

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!

Viewing 14 reply threads

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.

Event Espresso