Posted: July 3, 2014 at 9:57 am
|
Hi, Versions below Any ideas? |
Hi gpin, You site is throwing a JavaScript error, specifically within the custom.js file – http://take.ms/qXK9O The Calendar is JavaScript based, any issues with JavaScript will block other JS after this error from running. Usually the error that is currently being thrown can be fixed by changing the code to use jQuery in no-conflict mode, which we discuss this here: https://eventespresso.com/2012/08/using-jquery-in-safe-mode/ |
|
|
Hi Tony, |
Is the Calendar Add-on currently active? Looking at the Calendar page linked we can see the shortcode isn’t parsing at all currently. |
|
|
Name: Event Espresso – Calendar |
That version of the Calendar is for EE4. De-activate and delete that plugin. From your account page: Download the Calendar in green (Green for EE3, blue for EE4) That should be version 2.2.4 which is compatible with EE3. Upload and activate that on your site and it should then work correctly. |
|
|
Thanks For Reply… |
Can you enable WP_DEBUG on the site and see if any errors are thrown? I would test one of the default themes (twentyfourteen for example) and see if the Calendar then loads, you can do this without altering the live using a plugin such as Theme Test Drive. This will help determine if this is an issue with the theme or not. Can you tell me what version of WordPress are you currently using? |
|
|
Hi Tony, Thanks For The Reply….! And Also we installed the Theme Test Drive Plugin, in that plugin options we test the (Twenty Fourteen) WordPress default theme. The Screenshot attached below that Event Espresso – Calendar working in (Twenty Fourteen) WordPress default theme. |
Is the theme you are using a custom theme (completely custom from the ground up) or a modified theme? Most likely the theme is doing something strange with the_content(). First try wrapping the ESPRESSO_CALENDAR shortcode within [raw][/raw] tags, so: [raw][ESPRESSO_CALENDAR][/raw] then see if the Calendar loads (some themes support this, others do not) You could check the themes functions.php file and see if there are any functions hooking into the_content or wpautop (which is another common issue) |
|
Hi gpin, We received your support token request and investigated. It turns out that there’s a bit of code in the theme’s functions.php file that was added as a way to try to speed up the website. The code follows: //////////////////////////////////////////// // SPEED //////////////////////////////////////////// if( !is_admin() ) { // Move all JS from header to footer remove_action('wp_head', 'wp_print_scripts'); remove_action('wp_head', 'wp_print_head_scripts', 9); remove_action('wp_head', 'wp_enqueue_scripts', 1); add_action('wp_footer', 'wp_print_scripts', 5); add_action('wp_footer', 'wp_enqueue_scripts', 5); add_action('wp_footer', 'wp_print_head_scripts', 5); } While it’s a fairly common optimization to move JavaScript files to load at the bottom of the page where possible, the above code doesn’t take into consideration load order or script dependancies. So with the above code in action, the calendar’s scripts dependancies were not met and with that, the calendar couldn’t load as it normally would. I simply commented out code, and the calendar starting working. Along with that, most of the scripts on the page are loading at the bottom of the page, so the above trick was likely not helping much in terms of page speed. If you’re interested in speeding up the load time of the web page, you might try combining and compressing the scripts where possible. This will reduce the number of http requests, which can really speed up the load time of a web page because a high number of https requests is usually where the bottleneck is. The WP better minify plugin is one I have used with success to make that happen. |
|
|
Josh, Many thanks for your help. |
|
Hi, Is it OK to now mark this thread as resolved? |
The support post ‘event calendar not showing’ 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.