Support

Home Forums Event Espresso Premium Event espresso Calendar Add-On shortcode

Event espresso Calendar Add-On shortcode

Posted: December 8, 2014 at 6:36 am


Bogdan Sindile

December 8, 2014 at 6:36 am

Hello,
I want to uses the shortcode [ESPRESSO_CALENDAR] on homepage but it doesn’t work
The theme is called Corsa ( http://themeforest.net/item/corsa-retina-responsive-creative-onepage-theme/5902385 ).

The sortcode works only on separate page but not on the homepage which is one page style.

Please tell me how can i fix this.
Thank you!


Dean

December 8, 2014 at 6:58 am

Hi,

It could be a variety of things, can you provide a link to your site (make sure the shortcode is active) and we can take a closer look. It might be that we refer you to the theme authors support, depending on what we find.


Bogdan Sindile

December 9, 2014 at 12:32 am

Hi.
The website is: http://development.enformation.ro.

The shortcode is inserted on homepage before “Parteneri” section. It’s called “Resurse” and only 2 dropdowns are shown: “Select a category” and “Select a Venue” and nothing else.

Thank you»


Lorenzo Orlando Caum

  • Support Staff

December 9, 2014 at 7:01 am

Hi, were these changes applied?

https://eventespresso.com/topic/shortcodes-break-wp-theme/#post-123230


Lorenzo


Bogdan Sindile

December 9, 2014 at 8:25 am

Hello,
Yes, the changes are applied, you can see that on the same page at “Evenimente” section (before “Resurse” section) where this shortcode is used: [ESPRESSO_EVENTS limit=”5″] and it’s working fine.

The problem is with the calendar addon: [ESPRESSO_CALENDAR].

Thank you.


Lorenzo Orlando Caum

  • Support Staff

December 9, 2014 at 1:57 pm

Hi,

The calendar resources don’t appear to be loading on that page. Is your theme calling wp_footer()?


Lorenzo


Bogdan Sindile

December 10, 2014 at 12:21 am

Hi,
Yes. The theme is calling wp_footer(). You can see that in the other resources that are loaded (like: espresso_core.js).

What can i do more?

Thank you.


Dean

December 10, 2014 at 1:40 am

This is a strange one, as it looks like the scripts etc are loading ok, all except our calendar one.

Have you done any troubleshooting? E.g. disabling all other plugins? Swapping to a basic default theme (temporarily – the Theme Test drive plugin is very useful for this)?

We may need site access (and a copy of the theme) to examine this issue further, but first I’d like to see if the plugin deactivation brings anything up.


Josh

  • Support Staff

December 10, 2014 at 7:04 am

Hi Bogdan,

One thing to keep in mind about the Corsa theme’s home page is it’s not exactly loading in standard WordPress post content. If the calendar shortcode was written in a way where it loaded its scripts everywhere and all the time, it work load them onto this home page. It doesn’t load them on every page though, because normally you don’t want scripts unnecessarily loading on every page.

What you can do here is edit the Corsa theme’s page-home.php file (I recommend making the edit in a child theme if possible). You’ll add a few lines of code to load in the calendar’s scripts directly into the page template between where it defines ONE_PAGE_HOME and where it makes the get_header() call, like this:


/*
Template Name: Home Page
*/
define('ONE_PAGE_HOME', TRUE);
global $is_espresso_calendar;
$is_espresso_calendar = TRUE;
add_action('wp_enqueue_scripts', array('EED_Espresso_Calendar', 'calendar_scripts'));
add_filter('FHEE_load_qtip', '__return_true' );
get_header();


Bogdan Sindile

December 16, 2014 at 12:09 am

That fixed the issue. Thank you very much.

The support post ‘Event espresso Calendar Add-On 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.

Event Espresso