Single event page: how to display city below event title

Home Forums Calendar Products Events Calendar PRO Single event page: how to display city below event title

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1151279
    Rafael
    Participant

    Hello support

    The single event page shows the event title, followed by the event date and time on the next line. How can I add the event city to that line?

    So the outpout would be:

    TITLE
    DATE TIME CITY

    #1151906
    Geoff B.
    Member

    Good evening Rafael and welcome back!

    Thank you for reaching out to us.
    I would love to help you with this topic.

    The best way to achieve that would be by doing a template customization.

    You might want to read our Themer’s guide to get a sense of how that works.

    Basically, that means:

    • Making a copy of the single-event.php and related includes in your WordPress theme
    • Tweaking that copy to add the city from the venue info on that line

    Let me know if that helps.

    Have a great day!

    Geoff B.

    #1154293
    Rafael
    Participant

    Hi Geoff

    Thanks for your answer.

    I understand the concept of the Themer’s Guide and template customization, but I still need assistance with my issue.

    For example, in single-event.php I understand that the event date and time are diplayed by the function echo tribe_events_event_schedule_details( $event_id, '<h2>', '</h2>' );. But how can I change it to display the event city on that same line?

    Can you help me with that?

    #1154707
    Geoff B.
    Member

    Hi again Rafael,

    The good news is that my earlier comment still stands (except for the quick workaround this time).

    You can also read about the function here: https://theeventscalendar.com/function/tribe_events_event_schedule_details/

    One way to do this might be to completely replace the function call in the single-event.php file by your version of what you find in that function.

    Let me know how that goes.

    Geoff B.

    #1163480
    Support Droid
    Keymaster

    Hey 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

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Single event page: how to display city below event title’ is closed to new replies.