Puzzling problem with Events Calendar Pro

So, I can’t seem to get the Events Calendar Pro plugin not to put the sidebar in on the events.

My config.php includes


and if I choose to apply template-events to any standard page it comes back full-width, but not any of The Events Calendar’s pages.

See http://onnseo.wpengine.com/events/ for the site in development.

Any thoughts?


Could I really need to exclude all these conditions in config.php?

What I would do is create my own function and reference that in the first sidebar array.

You could either use the gist (simplifying the checks and changing the echo to return true;) or use PHP’s get_included_files to check to see if the templates have been included.