All-in-One Event Calendar Fix for collapsing metaboxes

Make your Metaboxes collapsible again, and continue using's All-in-One Event Calendar.
Make your Metaboxes collapsible again, and continue using's All-in-One Event Calendar.

If you are using the All-in-One Event Calendar Plugin, I’m sure you’ve had some issues with it.

It’s a great plugin, and a swiss army knife for displaying Calendars on your WordPress site. However – being a swiss army knife is the source of a lot of problems. Every programmer knows that no user uses his software the way it was intended, and trying to cover every single task your users want, is both parts impossible and the root of a lot of problems.

However, I’m glad to have the Plugin available.

What I got for you is a quick fix, if you are using the latest version of WordPress (I really hope you do!), and Version 2 of All-in-One Event Calendar (in my case Version 2.0.6).

The issue is that in your WordPress Admin your Metaboxes do not collapse/open. The settings get saved, So if you click to close and reload the page, your Metabox will be closed, but without reloading the status stays the same.

The solution is to enqueue a rather simple .js file, I called mine admin-ai1ec-fix.js:

Now with that small script in your library, you just need to enqueue it, but only in admin. Put this code in your functions.php:

Voila! Enjoy the glory of your Calendar without having your clients calling you, claiming their mouse does not work.
You’re welcome!

Ein Kommentar

  1. Hey there! This post couldn’t be written any better! Reading through this post reminds me of my good
    old room mate! He always kept chatting about this.

    I will forward this post to him. Fairly certain he will have
    a good read. Many thanks for sharing!

Schreibe einen Kommentar

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert.