Customize titles in multisite installation

Home Forums Calendar Products Events Calendar PRO Customize titles in multisite installation

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1238783
    crharrison
    Participant

    Our client, who has pro installed on a site in a multisite installation, wants to customize the calendar so that starting times and venues are automatically added to the title.

    Is this possible, considering the calendar is on a multisite network with other sites that have the calendar installed?

    Also, her “venues” are rooms as the same address, so how would that work?

    #1239923
    Geoff
    Member

    Hi @crharrison,

    Thanks for getting in touch!

    I do think this would be possible, if the customization was done on the network level.

    For example, if all the sites are running on the same theme, then I would suggest writing a snippet and adding it to the functions.php file of that theme so that it applies to all the sites using it.

    While we’re unable to provide direct support for custom development, I did write up a quick, untested snippet you can try using and, at the very least, use it to work off of for adding the start time and venue to the event title:

    // Appends start time and venue to event titles
    function tribe_events_title_include_time_venue ($title, $id) {
    $separator = ' » '; // Separator between categories and title
    if (tribe_is_event($id) && !is_single()) {
    $title = $title . $separator . tribe_get_start_time() . $separator . tribe_get_venue();
    }
    return $title;
    }
    add_filter('the_title', 'tribe_events_title_include_time_venue', 100, 2);

    Does this help answer your question? Please let me know. 🙂

    Cheers!
    Geoff

    #1240964
    crharrison
    Participant

    Thank you. So that change would affect all sites on the network, correct?

    #1242166
    Geoff
    Member

    Hi @crharrison,,

    Yes, it would, as long as the theme that is running the function is installed across all sites on the network.

    Cheers!
    Geoff

    #1253847
    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 ‘Customize titles in multisite installation’ is closed to new replies.