Support

Home Forums Events Calendar Add-on Calendar Questions

Calendar Questions

Posted: September 29, 2012 at 3:35 pm


Jennifer Doyon

September 29, 2012 at 3:35 pm

Hi –

Though the settings for week, day, and next year are defined, I only have buttons for today and previous/next month in my calendar. http://www.brookfieldlibrary.org/brkwpress/events/event-calendars/all-events-calendar/ How can I get these to display?

Also, do you have any suggestions for printing the calendar? I need to be able to print one month to a page (either letter or legal size).

Thanks!

Jennifer


Dean

October 1, 2012 at 2:05 am

Hi Jennifer,

I managed to recreate your style of calendar by removing the content of the Header Style box in Event Espresso > Calendar Settings > Advanced Settings.

If the same box is empty in your settings, either add the following to it and save or perhaps tick the reset calendar tick box and save though that will reset all the settings for it.

left: 'prev, today', center: 'title', right: 'month,agendaWeek,agendaDay,next'


Jennifer Doyon

October 1, 2012 at 11:47 am

Hi, Dean –

Unfortunately, neither of these suggestions worked. Anything else you can think of?

Also, somewhat more pressing is printing the calendar – what is the best way to do this?

Thanks –
Jennifer


Josh

  • Support Staff

October 1, 2012 at 2:33 pm

Hi Jennifer,

When I view the source of the above linked page (around line 272 of the calendar page source), it looks like the General Display code has been removed or commented out.

If you open up the espresso-calendar plugin’s espresso-calendar.php on the server, it should read something like this starting around line 465 right before the code block that’s labeled “Theme Settings”:

//month, basicWeek, basicDay, agendaWeek, agendaDay
                    defaultView: '<?php echo $cal_view ?>',

                    //Defines the buttons and title at the top of the calendar.
                    header: { //Settings: http://arshaw.com/fullcalendar/docs/display/header/
                        <?php echo stripslashes_deep($espresso_calendar['espresso_calendar_header']) ?>
                    },

You could also download a fresh copy of the calendar add-on from your account page and compare the file from a fresh copy to what is installed on the site.

With the print question, Event Espresso’s calendar is built on top of the jQuery FullCalendar plugin. While Event Espresso doesn’t include a print stylesheet for the calendar add-on, the downloadable version of FullCalendar includes a print stylesheet which I would recommend as a starting point. You can download a copy of the FullCalendar plugin here: http://arshaw.com/fullcalendar/download/ This will include a fullCalendar print stylesheet that you could add to your WordPress theme.

Here are two guides on how to work with print style sheets:
http://www.alistapart.com/articles/goingtoprint/
http://coding.smashingmagazine.com/2011/11/24/how-to-set-up-a-print-style-sheet/


Joe Faletra

October 3, 2012 at 3:06 pm

I tried the items above and I still can’t get the Next and previous to appear. Check out: https://www.jtffirearms.com/course-calendar/

Joe


Seth Shoultes

  • Support Staff

October 3, 2012 at 3:29 pm

I can see the button with Firebug turned on (screenshot: http://www.screencast.com/t/etbgDIGvW). So it looks like something in your theme is overriding the calendar style. Have you tried temporarily switching to the Twenty Eleven theme to see if that fixes the issue? You may have to contact the theme developer and ask them to help fix the issues.


Joe Faletra

October 4, 2012 at 2:44 pm

I flipped to 2011 and still no arrows. http://www.jtffirearms.com/course-calendar/

Weird eh?


Josh

  • Support Staff

October 4, 2012 at 3:13 pm

Hi Joe,

Can you try switching to one of the themeroller styles in Event Espresso>Template settings? There are darker themes that will match the dark color scheme of your theme. Activating one of the themeroller styles will usually address the issue with the missing arrow buttons.


Jennifer Doyon

October 5, 2012 at 1:20 pm

Thanks for your response, Josh. I added the code you provided, and it did give me the day and week buttons. However, when I click on those views, there are no events visible.

I disabled it on the site because it’s not fully functional, but you can view a screenshot here:
http://www.brookfieldlibrary.org/wp-content/uploads/2012/10/Adult-Events-Calendar-Calendars-Events-The-Brookfield-Library-151420.png

Also, thank you for the info on print style sheets.

Jennifer


Josh

  • Support Staff

October 5, 2012 at 2:40 pm

Hi Jennifer,

It looks to me that the simplest way forward is to download a fresh copy of the calendar add-on and install it. The code I posted above should have been in the file. So since it was missing, other parts might be missing too.


Jennifer Doyon

October 9, 2012 at 1:57 pm

Many thanks, Josh – reinstalling the calendar resolved the issue.

Jennifer


Joe Faletra

October 20, 2012 at 7:32 pm

@josh – BINGO! That worked. Thanks!

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