Home › Forums › Calendar Products › Events Calendar PRO › Details in left column/sidebar
- This topic has 7 replies, 4 voices, and was last updated 9 years, 5 months ago by
Tracie Schmitt.
-
AuthorPosts
-
October 31, 2016 at 9:56 pm #1185606
Tracie Schmitt
ParticipantHello,
I’m using the event calendar pro. I have the default event template as the layout for the event calendar and want to keep it that way. However, on the single event, I want all the event details including venue and organizer along with the google map if possible to be grouped in a left or right column/sidebar like these sites http://alexandrederussie.com/evenement/alexandre-afterwork-14/ and http://www.beggarstheatre.co.uk/event/the-underground-man/. I could add other sidebar like news feed and social media by changing the layout option to 1/3. But ow do I get all the event details into a sidebar?
Thanks,
November 1, 2016 at 8:12 am #1185771Geoff
MemberHi Tracie,
Good question and thanks for getting in touch. 🙂
It will take a little bit of custom development on your end to do this, but it is definitely possible to change the layout of the single event view. While we are fairly in how much we can support custom development questions, I am absolutely happy to help get you started.
In this case, I think a template override is the best route to go. Template overrides are detailed thoroughly in our Themer’s Guide, but it basically boils down to this:
- Make a copy of the single-event.phpt template. It is located at /wp-content/plugins/the-events-calendar/src/views/single-event.php.
- Make a new folder in your theme directory called tribe-events
- Add the copied single-event.php template to that folder
Now that the template is in your theme, it can be customized to suit your needs. In this case, you can add a spot for a left or right sidebar and move the information from the main body to it.
Will this help you get started? Please let me know. 🙂
Cheers!
GeoffNovember 1, 2016 at 9:07 am #1185819Tracie Schmitt
ParticipantHello,
Thank you so much for your reply. The theme I bought from CMSMasters came with a folder called tribe-event and inside that folder there is already a file called single-event.php.
So do I just make edit in that file in the tribe-event folder? Or do I add a new folder and add another copied single-event.php file then make edit in the new copied file?November 1, 2016 at 2:29 pm #1186023Geoff
MemberOh nice, and great question!
Yes, you can edit the file that came with the theme.
At the same time, you may want to reach out to the theme developer because they clearly have customized things already and would be more familiar with those customizations and be able to support them. I’d hate to tell you it’s ok to do something but then it conflicts with someone’s else’s custom development, so reaching out there might be the best way to go to get started.
Cheers!
GeoffNovember 1, 2016 at 5:32 pm #1186088Tracie Schmitt
ParticipantI talked to the theme developer and they said they won’t do anything. What code do I need to add to hook up the sidebar for the meta section? I’ve read on different threads that I would need to add a get sidebar function. However, I don’t know exactly where. This is what my code for the meta section looks like now
if (!apply_filters(‘tribe_events_single_event_meta_legacy_mode’, false)) {
tribe_get_template_part( ‘modules/meta’ );
} else {
echo tribe_events_single_event_meta();
}November 2, 2016 at 8:02 am #1186336Geoff
MemberHi Tracie and thanks for following up!
I appreciate you reaching out to the theme developer, though I am bummed to hear they will not help in this case.
While I cannot vouch for what sort of customizations were made to your template, I can tell you that this is what is in the default template:
<!-- Event meta --> <?php do_action( 'tribe_events_single_event_before_the_meta' ) ?> <?php tribe_get_template_part( 'modules/meta' ); ?> <?php do_action( 'tribe_events_single_event_after_the_meta' ) ?>That’s where I would start, personally. But, again, I want to make sure you’re aware that it’s tough for me to tell for sure and that the theme developer would still be the best person for guidance and support.
Sorry I don’t have a concrete answer for you here, but I do hope this at least helps get the ball rolling in the right direction. 🙂
Cheers!
GeoffNovember 24, 2016 at 8:35 am #1197036Support Droid
KeymasterHey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.
Thanks so much!
The Events Calendar Support Team -
AuthorPosts
- The topic ‘Details in left column/sidebar’ is closed to new replies.
