Posted: December 8, 2014 at 6:36 am
|
Hello, 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. |
|
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. |
|
Hi. 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» |
Hi, were these changes applied? https://eventespresso.com/topic/shortcodes-break-wp-theme/#post-123230 — |
|
|
Hello, The problem is with the calendar addon: [ESPRESSO_CALENDAR]. Thank you. |
Hi, The calendar resources don’t appear to be loading on that page. Is your theme calling wp_footer()? — |
|
|
Hi, What can i do more? Thank you. |
|
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. |
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(); |
|
|
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.