Home › Forums › Calendar Products › Events Calendar PRO › How Can You Have Multiple Single or Event View Templates for Different Events
- This topic has 7 replies, 3 voices, and was last updated 10 years, 10 months ago by
Support Droid.
-
AuthorPosts
-
June 9, 2015 at 7:01 am #968102
Lauren
ParticipantHow can I have/use multiple unique single templates for specific events or categories?
For example, I want to use a unique (different layout, full width with no sidebar) single event template for a conference category/event but everything else a default single template (2 columns, sidebar) or the single-event.php in /tribe-events/single-event.php.
I can’t find this anywhere in the document or search. Let me know. Thanks.
June 9, 2015 at 9:15 am #968177Lauren
ParticipantI still need assistance on this.
June 9, 2015 at 6:01 pm #968311Brian
MemberHi,
Sorry for the delay on this.
I can help you out.
How can I have/use multiple unique single templates for specific events or categories? For example, I want to use a unique (different layout, full width with no sidebar) single event template for a conference category/event but everything else a default single template (2 columns, sidebar) or the single-event.php in /tribe-events/single-event.php.
Since we only have the one template for single-events you would have to use conditional statements on that template to modify the content layout based on what you would like to do.
Here is all of WordPress’s conditionals:
https://codex.wordpress.org/Conditional_Tags
And here is ours:
https://gist.github.com/jo-snips/2415009
Let me know if you have any follow up questions.
Thanks
Please note per our terms and conditions we may take up to 24 hours to respond on weekdays to your posts. We try to get that earlier, but not all the time.
June 11, 2015 at 11:32 am #968856Lauren
ParticipantThanks. So there isn’t a way to create a separate template like single-event-books.php for example to pick up all Books category for example?
June 11, 2015 at 12:05 pm #968862Brian
MemberHi,
So there isn’t a way to create a separate template like single-event-books.php for example to pick up all Books category for example?
Unfortunately, no, but that is an interesting idea and I could see how that would be useful.
If you would like to request that feature please head to our UserVoice Page and add your own or upvote that feature as they will increase the chances of it being added to a future version.
http://tribe.uservoice.com/forums/195723-feature-ideas
Thanks
June 11, 2015 at 12:27 pm #968874Lauren
ParticipantLooks like the function I was looking for was tribe_event_in_category().
June 11, 2015 at 4:45 pm #968921Brian
MemberOk glad you found that function.
July 7, 2015 at 6:32 am #984304Support 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 Can You Have Multiple Single or Event View Templates for Different Events’ is closed to new replies.
