English version

Home Forums Calendar Products Events Calendar PRO English version

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #953240
    Ben
    Participant

    Hi

    How can I can ‘Organizer’ to Organiser’ on the signle events page?

    Cheers

    Ben

    #953359
    George
    Participant

    Hey Ben,

    The easiest way to do this, by far, is to use the same principles and functions in our official knowledgebase article on the topic – check that out here → https://theeventscalendar.com/knowledgebase/relabeling-the-venue-organizer-sections-in-event-meta/

    However, to only limit the change to Single Events pages like you asked, just tweak the code mentioned there to this instead:

    
    add_filter('tribe_organizer_label_singular', 'ben_change_single_organizer_label' );
    add_filter('tribe_organizer_label_plural', 'ben_change_plural_organizer_label' );
    
    function ben_change_single_organizer_label( $label) {
    	if ( is_single() && tribe_is_event() ) {
    		return 'Organiser';
    	}
    
    	return $label;
    }
      
    function ben_change_plural_organizer_label( $label ) {
    	if ( is_single() && tribe_is_event() ) {
    		return 'Organisers';
    	}
    
    	return $label;
    }
    

    That should do the trick just fine – if you need more specific controls over the single Organizer template, or any other part of The Events Calendar-generated front-end views, check out our themer’s guide here → https://theeventscalendar.com/knowledgebase/themers-guide/

    Cheers!
    George

    #983968
    Support Droid
    Keymaster

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

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘English version’ is closed to new replies.