Support

Home Forums Event Espresso Premium Custom calendar templates

Custom calendar templates

Posted: January 8, 2014 at 10:05 am

Viewing 3 reply threads


Jon Huther

January 8, 2014 at 10:05 am

We can’t use custom calendar template like we can for event listing, etc? Any changes we make to calendar will be blown away with each plugin update?


Josh

  • Support Staff

January 8, 2014 at 12:00 pm

Hi Jon,

I’m afraid I don’t understand your first question. What do you mean by “like we can for event listing”?

If you make changes directly to the calendar template files, yes, they’ll get overwritten, but it’s not necessary to make changes directly to the files. For example, if you want to make CSS changes, CSS can be added to an external file or your theme’s stylesheet and they’ll load from there.

If you want to make major changes to the markup or PHP, you can use the action_hook_espresso_custom_template_calendar-table hook and remove the function that the default template adds and add your own via the same hook.


Jon Huther

January 8, 2014 at 12:10 pm

I mean I can make a template in uploads/eventespress/ and arrange the content on the event listings/registration as I wish and still upgrade without loosing my custom layout.

For the calendar tooltip if I want event meta fields to show up above the description or in the title bar, I have to edit the calendar plugin php, I can’t make a template of my own and place into the uploads/eventespresso, can I? (Not talking css styling.) So when I upgrade I’ll need to go to my backup and re-implement those changes.

I’ll check info “action_hook_espresso_custom_template_calendar-table”.


Josh

  • Support Staff

January 8, 2014 at 1:20 pm

I see.

The calendar plugin doesn’t use templates, so there are no templates to override. There are some hooks that can be used to override some aspects of the calendar though. I really misunderstood your first question, because I thought you were referring to the custom calendar table template add-on, so the hook I mentioned does not apply to the calendar. If you look through the calendar plugin’s code though, there are hooks. If you see a place where you think a hook will help for your use case please let us know and we can look into adding it.

Viewing 3 reply threads

The support post ‘Custom calendar templates’ 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