Home › Forums › Calendar Products › Community Events › Sidebar for Events Pages & Community Submission PageCommunity Submission Page
- This topic has 4 replies, 2 voices, and was last updated 10 years, 11 months ago by
Jami.
-
AuthorPosts
-
April 29, 2015 at 1:39 am #959158
Oliver
ParticipantHi Casey,
on our website we use the Community Submission Page (http://www.treffpunkt-jazz.de/events/community/add) and the Events Page (http://www.treffpunkt-jazz.de/events/).
Unfortunately the sidebar is not shown there and I haven’t found any solution how to get it, as it is somehow hardcoded to the URLs configured in the settings of TEC.
Is there any way to include it, maybe by a shortcode or a piece of php-code or as a tweak by generating a new page template?
Best regards,
OliverApril 29, 2015 at 8:08 am #959262Jami
BlockedHey Oliver!
It’s a pleasure to meet you. I hope you don’t mind that I help you out with this one. 🙂
The sidebar that you’re seeing on the other pages of your site is displayed by your theme templates. The Events Calendar has its own templates so for us to get the theme’s sidebar to integrate with the plugin templates, we’ll have to look into leveraging the Themer’s Guide.
If you’d like to add a sidebar to your events list page, for example, you’ll want to create a folder in your theme called “/tribe-events/” and copy over the events list page template file from the plugin to your theme folder. In this case, that template file would be:
/wp-content/plugins/the-events-calendar/views/list.php
Then it’s just a matter of editing that template with your theme’s sidebar snippet.
For your reference, the plugin template files are located in the following places:
The Events Calendar template files
/wp-content/plugins/the-events-calendar/views/The Events Calendar Pro template files
/wp-content/plugins/events-calendar-pro/views/The Community add-on template files
/wp-content/plugins/events-community/views/I hope that helps get you started! Let me know if you have any other questions or if I can help with anything else.
Kind Regards,
JamiApril 29, 2015 at 1:52 pm #959380Oliver
ParticipantHi Jami!
nice to meet you! Look like there is a new member in the tribe 😉
The solution you provided is exactly what I was searching for!
I will try to implement it tomorrow!Just two more questions:
which are the php-page templates for /events/community/add and /events/community/list?Best regards,
OliverApril 30, 2015 at 11:11 am #959706Jami
BlockedHi Oliver,
The new member of the tribe, that’s me! 🙂
As for the community “add” and “list” pages, you’d want to create a new directory in your theme for it like this:
/tribe-events/community/
And place the following template files into that folder:
/wp-content/plugins/events-community/views/community/event-list.php
/wp-content/plugins/events-community/views/community/event-edit.phpLet me know if you have any other questions or if I can help with anything else.
Kind Regards,
JamiMay 13, 2015 at 3:01 pm #962462Jami
BlockedHey Oliver,
It’s been a while since I’ve seen any activity here so I’m going to close the thread. Please feel free to open a new one if you need anything else though!
Kind Regards,
Jami -
AuthorPosts
- The topic ‘Sidebar for Events Pages & Community Submission PageCommunity Submission Page’ is closed to new replies.
