Home › Forums › Calendar Products › Events Calendar PRO › Modifying event pop-up
- This topic has 5 replies, 2 voices, and was last updated 12 years, 1 month ago by
Barry.
-
AuthorPosts
-
March 28, 2014 at 11:35 am #124391
alexhammerstein
ParticipantWhen mousing over an event a popup appears with the tittle, date,times and a short description of the event.
Can you tell me please how I remove the finish time from being displayed and also adding the venueMarch 28, 2014 at 1:44 pm #124482Barry
MemberHi!
With regards to removing the end time first of all, your first stop should be our Themer’s Guide. This explains the process of setting up template overrides which is the easiest way to approach the first problem (of hiding end times).
With that done, please set up a copy of month/single-event.php and look for the following piece of code:
data-tribejson='<?php echo tribe_events_template_data( $post ); ?>Change this to:
data-tribejson='<?php echo tribe_events_template_data( $post, array( 'endTime' => '' ) ); ?>Does that help with hiding the end time?
March 29, 2014 at 4:52 am #124672alexhammerstein
ParticipantHi Barry – thanks for your post. I am on a learning curve here, so I apologise if my questions are somewhat basic.
I went over to the Themer’s guide. So I have created a new folder wp-content/themes/my-theme-name/tribe-eventsI then started to look for the file month-event.pho and single-event.php. and this is where I started to get slightly lost, as I cannot find month-event.php anywhere and seem to have multiple copies of single-event.php
wp-content/plugins/the-events-calendar/views/single-event.php
wp-content/plugins/the-events-calendar/month/single-event.php
Am I right to ignore those and use:
wp-content/plugins/events-calendar-pro/views/pro/day/single-event.phpThanks for your continued help
March 31, 2014 at 11:36 am #125404Barry
MemberSo I have created a new folder wp-content/themes/my-theme-name/tribe-events
Great! Just to be crystal clear, “my-theme-name” should of course relate to the actual directory name used by your theme.
I then started to look for the file month-event.pho and single-event.php. and this is where I started to get slightly lost, as I cannot find month-event.php anywhere and seem to have multiple copies of single-event.php
OK, so there is no template called month-event.php. The one you are looking for here is:
wp-content/plugins/the-events-calendar/views/month/single-event.php
You should copy this file and ensure your copy is located at:
wp-content/themes/my-theme-name/tribe-events/month/single-event.php
You can then go ahead and make changes to it.
Am I right to ignore those and use:
wp-content/plugins/events-calendar-pro/views/pro/day/single-event.phpNo, not if you are wishing to make changes to the month view tooltips.
It can certainly be a confusing experience if it’s the first time you’ve worked with template overrides, but hopefully the above answers get you on track – but please let me know if you need direction on anything else in connection with this.
Thanks!
April 1, 2014 at 8:31 am #126113alexhammerstein
ParticipantThanks Barry – that has solved the issue on the popup. Now, where do I go to find out what pages control the actual event page and the widget as i need to remove the end times there as well.
Thanks for your help
April 1, 2014 at 11:50 am #126293Barry
MemberSo there’s a template for single event pages called single-event.php which you can override and there are also widget templates that can be found in the PRO plugin directory, such as pro/widgets/list-widget.php (and others, too).
Altering the time format across the board to remove end times might be possible with a single snippet rather than adjusting templates individually, though, but what I’d recommend is a search of the forum first as this may already have been answered – but if not please do create a new thread and describe the change you are trying to make.
Thanks!
-
AuthorPosts
- The topic ‘Modifying event pop-up’ is closed to new replies.
