Support

Home Forums Event Espresso Premium Event Espresso Calendar not showing in page

Event Espresso Calendar not showing in page

Posted: September 22, 2014 at 6:46 pm

Viewing 3 reply threads


Flinn Carrington

September 22, 2014 at 6:46 pm

I am using a custom designed and coded theme. The calendar is not showing up on the page when I am using my custom theme. When I switch to a theme built into wordpress like 2011, then the calendar shows up on the page. Any help to fix this issue would be greatly appreciated. I have already resolved the JQuery known bug.


Garth

  • Support Staff

September 22, 2014 at 8:21 pm

Can you send us a link to the calendar page in question?


Flinn Carrington

September 23, 2014 at 8:10 am

http://taclens.com/calendar/


Josh

  • Support Staff

September 23, 2014 at 8:34 am

Hi Flinn,

Your custom theme is not coded correctly to allow scripts to load. It’s missing the standard WordPress functions that allow plugins to load their scripts. That’s why it works with the other themes, and not your theme.

First, please remove this code from where ever you added it, it’s not helping:

if (!is_admin()) add_action("wp_enqueue_scripts", "my_jquery_enqueue", 11);
function my_jquery_enqueue() {
   wp_register_script('jquery';
   wp_enqueue_script('jquery');
}

Then, in the header.php file, you’ll need to add this code:

wp_head();

Please see this example for where and how it should be added:

http://codex.wordpress.org/Function_Reference/wp_head#Examples

Then, you’ll need to add a similar function to footer.php:

wp_footer();

Please see this example for where and how it should be added:

http://codex.wordpress.org/Function_Reference/wp_footer#Examples

If you do not have a header.php file or footer.php file, please post the contents of your theme’s main template file to a github gist or a pastebin at pastebin.com, and link to it here and we can show you where to add the necessary code.

Viewing 3 reply threads

The support post ‘Event Espresso Calendar not showing in page’ 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