Support

Home Forums Events Calendar Add-on 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

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

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

September 28, 2012 at 8:49 pm

Hi Kristen,

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

if ( !is_admin() && function_exists( 'espresso_raw_formatter' ) ){
	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

  • Support Staff

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’): https://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