Support

Home Forums Event Espresso Premium Event Espresso 4 Events Calendar add-on short code

Event Espresso 4 Events Calendar add-on short code

Posted: May 5, 2015 at 3:11 pm

Viewing 4 reply threads


Shelley Poulsen

May 5, 2015 at 3:11 pm

I am trying to add this to our website in a sidebar within a template file, but when I add

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

It doesn’t return anything… what am I missing?


Shelley Poulsen

May 5, 2015 at 3:13 pm

Also, it works if we paste [ESPRESSO_CALENDAR] in to a page body but not when using the do_shortcode function


Lorenzo Orlando Caum

  • Support Staff

May 5, 2015 at 8:17 pm

Hi Shelley, could you ensure that the calendar scripts are also loading?

See this link:

https://eventespresso.com/wiki/events-calendar-add-on/#ee4customizations


Lorenzo


Shelley Poulsen

May 5, 2015 at 9:42 pm

I placed
<?php
global $is_espresso_calendar;
$is_espresso_calendar = TRUE;
?>
in the top of my header.php file and it isn’t loading the calendar scripts…


Josh

  • Support Staff

May 6, 2015 at 3:20 pm

Hi Shelley,

You may also need to add the following to your template:

add_action( 'wp_enqueue_scripts', array( EED_Espresso_Calendar::instance(), 'calendar_scripts' ));
add_filter('FHEE_load_qtip', '__return_true' );

Note that the qtip script isn’t necessary if you have the Tooltip option disabled.

Viewing 4 reply threads

The support post ‘Event Espresso 4 Events Calendar add-on short code’ 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