I am trying to load the Event Calendar (using a shortcode) but the calendar does not load. I am using the Divi Theme 4 (with Theme Builder). The calendar categories does load but the calendar itself does not. It works when I run the embed code or if I load a widget with the Calendar
The Grid view also does not work (it loads the content but not the styling). I have confirmed that wp_footer() is being used by my theme
When the calendar shortcode is input into a page builder and the page builder doesn’t pass the shortcode to the post content, then the calendar add-on doesn’t know to load its scripts.
You can force load the calendar scripts to your site’s home page by adding the following code to a site functions plugin:
add_action('get_header', 'my_load_ee_calendar_scripts');
function my_load_ee_calendar_scripts() {
if (class_exists('EED_Espresso_Calendar') && (is_home() || is_front_page())) {
global $is_espresso_calendar;
$is_espresso_calendar = TRUE;
add_action(
'wp_enqueue_scripts',
array(EED_Espresso_Calendar::instance(), 'calendar_scripts')
);
if (EED_Espresso_Calendar::instance()->config()->tooltip->show) {
add_filter('FHEE_load_qtip', '__return_true' );
}
}
}
The support post ‘Event Calendar does not load on Divi Theme Builder’ 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.
Support forum for Event Espresso 3 and Event Espresso 4.