Home › Forums › Calendar Products › Events Calendar PRO › Site's default sidebar doesn't appear on /event/ or /events/ pages
- This topic has 5 replies, 2 voices, and was last updated 10 years ago by
Geoff.
-
AuthorPosts
-
May 10, 2016 at 8:32 am #1112698
Eric
ParticipantHi there –
My site’s default sidebar doesn’t appear on my event pages (neither on single event pages nor on pages with all events).
See http://terrascope.mit.edu/event/radio-broadcast-new-mexican-agriculture/ compared to
http://terrascope.mit.edu/category/students/ and http://terrascope.mit.edu/news/new-terrascope-blog-starts-with-students-in-the-spotlight/I suspect that my theme (Bridge by Qode) doesn’t recognize the Event custom post type as a post. So, I wonder if there’s a way to change the settings in Event Calendar so that my default post sidebar will appear – perhaps by changing the URL slug, or by selecting to “Include events in main blog loop”. What do you think?
Thanks,
emilyMay 10, 2016 at 9:22 am #1112738Geoff
MemberHey Emily,
I know exactly what you mean! This comes up every so often — it’s so hard to integrate with all the various themes out there. 🙂
One thing that often works is to head to Events > Settings > Display and change the calendar template to use one of your theme templates instead of the default event template (screenshot). This will at least put your theme’s template to use and, if you have a sidebar area registered to that template, then it will render on the page.
Does this make sense and will it work for you? Please let me know.
Cheers!
GeoffMay 11, 2016 at 12:52 pm #1113402Eric
ParticipantHi Geoff – thanks so much for the tip! I’ve played with the default event template options quite a bit, and I still can’t seem to make sidebars appear.
Would you happen to have other ideas? I realize I might need to address an issue with my theme, but I’d like to try fixing it on the Events Calendar side if possible.
Thanks so much,
emilyMay 11, 2016 at 1:02 pm #1113412Geoff
MemberAbsolutely!
Another idea is to override the default-template.php file in your theme and add the sidebar manually.
We have a Themer’s Guide that covers template overrides in much more detail, but it basically boils down to this:
- Make a copy of the default-template.php file. It is located in /wp-content/plugins/the-events-calendar/src/views/default-template.
- Make a new folder in your theme (or child theme) called tribe-events
- Drop the copied default-template.php file in that folder
Now that the template is in your theme folder, you can modify it to suit your needs. In this case, add in the code for your side where you would like it to appear in the template. You may need to tweak some things around with the CSS to get it looking just right, but this will at least get the sidebar in the template.
Will that work for you? Please let me know. 🙂
Cheers!
GeoffMay 12, 2016 at 12:31 pm #1113994Eric
ParticipantI did manage to make it work – thank you for such helpful guidance!
Best,
emilyMay 12, 2016 at 12:47 pm #1113999Geoff
MemberMy pleasure! So glad that did the trick — thanks so much for following up.
Cheers and thanks for using Events Calendar PRO. 🙂
Geoff
-
AuthorPosts
- The topic ‘Site's default sidebar doesn't appear on /event/ or /events/ pages’ is closed to new replies.
