Support

Home Forums Events Calendar Add-on Calendar Not Appearing

Calendar Not Appearing

Posted: January 4, 2013 at 11:28 am


Donna

January 4, 2013 at 11:28 am

Hello. I’m unable to get the calendar to display on a new page I’ve added to shortcode to.
I’ve tried disabling plugins, wrapping the shortcode in raw, making sure is in footer, trying this shortcode [ESPRESSO_CALENDAR show_expired=”false”].
Calendar should appear on this page; http://ncbase.org/hba/calendar/
Any help is appreciated.


Josh

  • Support Staff

January 4, 2013 at 11:54 am

Hi Donna,

In this case, it’s the older copy of jQuery that the theme is loading in the footer that is causing the issue. In the theme’s footer.php file, you’ll see something like this:

 <!-- Placed at the end of the document so the pages load faster -->
        <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>

This should be removed. WordPress has a function that will load the jQuery JavaScript library when needed, and the above code is interfering.

Here is the same page with the extra jQuery library removed:

http://jsfiddle.net/joshfeck/e7emH/embedded/result/

Since other scripts included with the theme will require the jQuery library and are likely not declaring this dependency correctly, you will likely need to add something like this to the theme’s header.php file just before the theme calls the wp_head() function. It will look like this:

<?php wp_enqueue_script("jquery"); ?>

<?php wp_head(); ?>

Please see this reference for more info:
http://digwp.com/2009/06/including-jquery-in-wordpress-the-right-way/


Donna

January 4, 2013 at 12:07 pm

that’s fantastic. Thanks very much Josh!

The support post ‘Calendar Not Appearing’ 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