Support

Home Forums Event Espresso Premium Calendar shortcode not working in theme files

Calendar shortcode not working in theme files

Posted: March 6, 2015 at 12:17 am

Viewing 1 reply thread


vsibley

March 6, 2015 at 12:17 am

Hiya,

I am trying to add calendar into news and events page, I have added the following code into page.php file but it does not work.

<?php echo do_shortcode(‘[ESPRESSO_CALENDAR]’); ?>

Please help!

Thanks


Dean

March 6, 2015 at 5:34 am

Hi,

Well, it looks like the way the shortcode has been set up, the scripts aren’t loading when using do_shortcode.

Adding the following before your do_shortcode should load the correct files:

wp_enqueue_script(‘fullcalendar-min-js’);
wp_enqueue_script(‘espresso_calendar’);

wp_enqueue_style(‘fullcalendar’);
wp_enqueue_style(‘espresso_calendar’);

Viewing 1 reply thread

The support post ‘Calendar shortcode not working in theme files’ 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.

Event Espresso