Posted: December 1, 2021 at 9:34 am
Hello, we are running into an issue with the Calendar on mobile devices. When loading the page, reports are that only a spinning cog is shown and nothing ever loads onto the calendar, not even the skinny color lines. Our IT support has attempted to add CSS code to change the width on mobile and display only titles, but neither has helped this issue. |
|
Hi there, The spinning cog means the ajax request the calendar sends to pull in the events is either failing or has an error being thrown on it. CSS wont help here as the events are loaded in the calendar for CSS to display. I checked on your site and it looks like something has been set up to block admin requests? If I go to
Which means the request is being blocked, that link should return just Can you check with you IT support and have them allow requests through to |
|
Side note, this isn’t a mobile-specific issue as I’m getting the same on desktop. |
|
Good morning, this is the response I received from our IT support: Thank you, we understand the issue now, but we only allow our internal subnets to access ‘/wp-admin/’. External access to wp-admin is blocked via .htaccess. This is a security measure to ensure our admin dashboard is not exposed to login attempts/attacks from outside our network. Is there any other resolution? Are there other files in wp-admin which need to be granted access to all for EE to work properly? |
|
No.
https://codex.wordpress.org/AJAX_in_Plugins They will need to add an exception for that single file as it is not just Event Espresso that uses this file but any plugin using ajax requests in the WP way.
No, just the above. |
|
Thank you very much for walking us through this, the IT specialist is going to allow that file through to fix this issue. |
|
It is now fixed and appears to be loading now, though on mobile devices, the calendar is poorly displayed due to size issues. Is there an easy CSS fix that we can add to adjust the display for small screen sizes to avoid the long blocks of color for events? |
|
Do you mean the height? If so someone has set some custom CSS to set the elements to have a min hight of 30em:
Remove or reduce that value to prevent that from happening. |
|
Here is the response I received: We had that code block already included in our css. We are currently using: /*Event espresso*/ #espresso_calendar .fc-event { /*revert table view*/ But we still have heigh issues on mobile. We want it to look more like ballyholme.com/event-calendar |
|
Well, yes and that is what is causing the height issue. As mentioned above you need to remove:
That’s forcing the min higher of the calendar items to be longer than normal on mobile.
Then remove the block of custom CSS for min-height you have added and that’s how it will display 🙂 |
|
The support post ‘Calendar Won't Load on Mobile’ 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.