Home › Forums › Calendar Products › Events Calendar PRO › Customizing Location in Months and Weeks View
- This topic has 3 replies, 4 voices, and was last updated 9 years, 10 months ago by
Janos.
-
AuthorPosts
-
June 14, 2016 at 2:38 am #1126601
Janos
ParticipantHi there,
first: i love the calendar!Is it possible to show the Location in the Title or in the mouse-over of an event?
Is it possible to give the events in different location different colours deending on the location?Additional question:
Is it possible to hide the times before 06:00 and after 22:00 and to disable the full day row?My very best regards,
JanosJune 14, 2016 at 2:47 pm #1127034Andras
KeymasterHello Janos (or is it János? 😉 ),
Thanks for going Pro and welcome to the support forums. I’m happy you like our plugins! Let me help you with your questions.
Most of what you want to achieve requires customization, but I am limited in supporting customizations. (Per our terms and conditions we support features of the plugins and although we try to help get you started on customizations for the most part you are going to have to take it on to complete.)
Is it possible to show the Location in the Title or in the mouse-over of an event?
This could be done with a custom template. You can use this article in our knowledge base as a starting point.
Is it possible to give the events in different location different colours depending on the location?
This doesn’t go out of the box. What you can do is use different categories for the events and color-code the categories with CSS. You can also try this plugin for coloring the different categories.
Is it possible to hide the times before 06:00 and after 22:00 and to disable the full day row?
Yes, it is possible, using the following snippet. Just paste it into your theme’s functions.php file:
add_filter( 'tribe_events_week_get_hours', 'filter_week_hours' );function filter_week_hours( $hours ) {
$hour = 0;foreach ( $hours as $key => $formatted_hour ) {
if ( $hour < 7 || $hour > 18 ) {
unset( $hours[ $hour ] );
}$hour ++;
}return $hours;
}
Note this line:if ( $hour < 7 || $hour > 18 ) {
Change the numbers to the timing you want to show on your week view.
I hope this helps. Let me know how it works out.
Cheers,
AndrásJune 29, 2016 at 9:35 am #1133523Support 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 ‘Customizing Location in Months and Weeks View’ is closed to new replies.
