Home › Forums › Calendar Products › Events Calendar PRO › How to change template of single events?
- This topic has 4 replies, 3 voices, and was last updated 10 years, 6 months ago by
Support Droid.
-
AuthorPosts
-
October 6, 2015 at 8:35 am #1011933
Johannes Maier
ParticipantHey there,
I’m using Theme X and Event Calendar. I’d like to display single events with a sidebar, but not the calendars overview page.
Can I somehow change the template of single events? Or do you have any ideas on how to realize this?Best regards,
JohannesOctober 6, 2015 at 9:41 am #1011967George
ParticipantHey @Johannes,
Thanks for reaching out!
What you’re seeking to do here might not be possible without code customization, unfortunately; but before jumping to that conclusion, I’m curious if the built-in “Events template” option of The Events Calendar will help here?
To see if this option will help, I’d recommend navigation to Events > Settings > Display in your site’s wp-admin.
Once on this settings tab, scroll down until you see the “Event template” option like in this screenshot:

I’d recommend trying every single option there. Change the option, save your changes, and then check out events and single events. Does any template come close to what you’re looking for here?
Cheers!
GeorgeOctober 7, 2015 at 3:29 pm #1012530Johannes Maier
ParticipantHey George,
Thanks for your suggestions. I’ve already tried all templates, and there are actually 2 which display the sidebar in single events. The only problem is now that main calendar page looks like this:

I’m not sure what causes it, but I hope you can tell me how to work around it 🙂
Best regards,
JohannesOctober 9, 2015 at 8:21 am #1013164George
ParticipantI’m sorry to hear about all of this, Johannes! It unfortunately sounds like a Catch-22 of a situation 🙁
Only one template can be chosen at this time, so if one template works w/r/t to the sidebar issue but fails on the main view, the only solution to that would be to “Change templates”. But if changing templates just leads to the inverse of the problem, and so the main view now works but the sidebar issues are back, then there’s not much that can be done here. I’m sorry!
If you only need the sidebars to appear on the single-event views, then one thing that might help is to first head that Events Template option and set it up with the template that works with the main event views; i.e. your sidebar issues will come back, but at least the main calendar views will work.
Then, head into your theme and look for a template called single.php. Copy and paste it into a Gist at http://gist.github.com, and share a link to that gist here.
I will then try to recommend some code changes to help here. To be clear, we do not offer support for custom code like this technically, and I can’t guarantee I’ll be able to fix this. What I’m hoping, though, is that your theme’s template is fairly simple; single.php templates generally are.
If it’s simple and I can see how the sidebar is generated, I will recommend some code to bring that structure into the events templates.
I’ll do my best here; I just feel awful about your situation with your theme, and want to help! If even my suggestions don’t help, then unfortunately the next best steps would be to contact the theme developer and/or a customizer to help tweak the code.
Thanks for your patience Johannes!
October 24, 2015 at 7:05 am #1017561Support Droid
KeymasterThis topic has not been active for quite some time and will now be closed.
If you still need assistance please simply open a new topic (linking to this one if necessary)
and one of the team will be only too happy to help. -
AuthorPosts
- The topic ‘How to change template of single events?’ is closed to new replies.
