Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-sales domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the better-click-to-tweet domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-amazon domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-stats domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the wordpress-seo domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114
Calendar Doesn't Show Up | Event Espresso - Staging Server

Support

Home Forums Calendar Calendar Doesn't Show Up

Calendar Doesn't Show Up

Posted: September 26, 2012 at 2:49 pm

Viewing 8 reply threads


kwalker

September 26, 2012 at 2:49 pm

I put the shortcode in for the Event Calendar on this page:

http://204.48.247.27/sandbox/events-2/event-calendar/

If I look at the source code I can see a bunch of code in there to show the calendar, but no calendar when I view the page.

Thanks,
Kristen


Dean

  • Support Staff

September 27, 2012 at 1:38 am

Hi

I couldn’t connect to the site to see the issue


kwalker

September 27, 2012 at 3:10 pm

Hmmm, the site is live, I’m not sure why you are not able to connect. Are you in the United States?

Thanks,
Kristen


Jonathan Wilson

  • Support Staff

September 27, 2012 at 6:24 pm

Hi Kristen,

Your theme is automatically inserting <p> tags into the calendar javascript which breaks the code and causes the calendar to not display:

http://www.screencast.com/t/C2frMwaBUhKe

Try to wrap your ESPRESSO_CALENDAR shortcode with [RAW] [/RAW] tags, so it looks like [RAW][ESPRESSO_CALENDAR][/RAW].


kwalker

September 28, 2012 at 12:03 pm

Hi Jonathan,
I tried wrapping the shortcode in raw tags, but still no love. Is there something more I need to do to get the raw tags to work?

http://204.48.247.27/sandbox/events-2/event-calendar/

Thanks,
Kristen


Jonathan Wilson

  • Support Staff

September 28, 2012 at 8:49 pm

Hi Kristen,

Try adding the following code to your theme’s functions.php file.

if ( !is_admin() ){
remove_filter('the_content', 'wpautop');
remove_filter('the_content', 'wptexturize');
add_filter('the_content', 'espresso_raw_formatter', 99);
}

If that doesn’t fix the problem, you will need to contact your theme developer to address the issue.


kwalker

October 4, 2012 at 12:10 pm

Hi Jonathan,
I tried putting the code in and unfortunately the calendar still doesn’t show up.

Thanks for all of your help,
Kristen


Josh

October 4, 2012 at 1:30 pm

Hey Kristen,

This tends to happen with themeforest themes. There’s a theme function that’s causing all those paragraph tags to be added, and it’s breaking the Calendar’s JavaScript.

Another way that you can fix this is by creating a page template for the calendar. This involves a bit of copying and pasting code from the theme’s page.php template. There areo more details in the calendar troubleshooting section here (under ‘auto p’): http://staging.eventespresso.com/wiki/calendar/#troubleshooting

Basically, the steps are:

1) Copy the theme’s page.php and rename the copy to page-calendar.php

2) Give the template a name:

/*
Template Name: Calendar
*/

Please see this article in the WP codex for more info on custom page templates: http://codex.wordpress.org/Theme_Development#Custom_Page_Templates

3) In the new template, remove the code that calls the_content() and replace with:

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

then save.

4) Select the Calendar page template in the WordPress page editor and save.

There’s another themeforest theme (striking) that had a very similar issue, and I posted the code for a custom calendar page template for that theme on github here as an example. It may be similar to the one for your theme:
https://gist.github.com/3207009

Please let us know if you have any questions about this.


Brian Tetrault

October 19, 2012 at 12:48 pm

I had this same exact problem–with the calendar not showing and it wasn’t adding P tags, so I did what Josh suggested and built a custom page template and it worked like a charm!

Viewing 8 reply threads

The support post ‘Calendar Doesn't Show Up’ 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 - Staging Server