Hi there, I recently bought the Events Calendar plugin and I have tried to implement it onto our staging site and for some reason it doesnt enqueue the CSS and JS.
It does however include this snippet of HTML:
<p>
</p><div id=”espresso_calendar” class=”calendar_fullsize”></div>
<div style=”clear:both;”></div>
<div id=”espresso_calendar_images”></div><p></p>
Upon further inspection of the plugin files, I found this snippet of PHP which checks the widget if it is an active widget.
/**
* parse_request
*/
public function init() {
if ( is_active_widget( FALSE, FALSE, $this->id_base, TRUE ) ) {
global $wp;
EED_Espresso_Calendar::instance()->run( $wp );
}
}
If the check is removed, the calendar appears. I’m implementing this widget through Beaver Builder so perhaps that is the reason why it isn’t working?
It’s literally in the docs, just pop this snippet in functions.php:
if ( class_exists( ‘EED_Espresso_Calendar’ ) ) {
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’ );
}
}
Viewing 1 reply thread
The support post ‘Events Calendar – CSS and JS not being enqueued with the widget and shortcode’ 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.