Changing 'Organisers' to be called 'Teachers' – to show as this in the URL

Home Forums Calendar Products Events Calendar PRO Changing 'Organisers' to be called 'Teachers' – to show as this in the URL

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1107699
    Lucy
    Participant

    Hello, I have bought and love your plugin!

    I just want to be able to modify one thing – my client wants the event organisers to be called ‘Teachers ‘- so I want to change the part of the URL /organisers/(name) to say /teachers/(name)

    – am i able to do this?

    Many thanks in advance!
    Lucy

    #1107956
    Andras
    Keymaster

    Hi Lucy,

    Thanks for going PRO and we are surely happy you love it! Let me try to help you with your question.

    You will need to add a little bit of code to your functions.php file.

    (Note, that using a child theme is recommended. You can find more info on child themes here.)

    So in your admin go to Appearance > Editor.

    On the right side you should see a list of files. Click on functions.php to have that in the editing window.

    Add this piece of code to the file and hit Update File.

    add_filter( 'tribe_events_register_organizer_type_args', function( $args ) {
    $args['rewrite']['slug'] = 'teachers';
    return $args;
    } );

     

    In case you don’t have a child theme and you add it to the functions.php of your main theme, then the changes will be lost when the theme is updated.

    Let me know if this helps!

    Cheers,
    Andras

    #1108097
    Lucy
    Participant

    That’s amazing, thank very much for your help, I’ll go implement this now!
    Lucy 🙂

    #1108457
    Andras
    Keymaster

    Hi Lucy,

    Happy to help!

    Please let me know if it works out.

    Cheers,
    Andras

    #1114335
    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 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Changing 'Organisers' to be called 'Teachers' – to show as this in the URL’ is closed to new replies.