Modifying event pop-up

Home Forums Calendar Products Events Calendar PRO Modifying event pop-up

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #124391
    alexhammerstein
    Participant

    When 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 venue

    #124482
    Barry
    Member

    Hi!

    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?

    #124672
    alexhammerstein
    Participant

    Hi 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-events

    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
    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.php

    Thanks for your continued help

    #125404
    Barry
    Member

    So 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.php

    No, 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!

    #126113
    alexhammerstein
    Participant

    Thanks 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

    #126293
    Barry
    Member

    So 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!

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Modifying event pop-up’ is closed to new replies.