Change the word "Website" on backend Organizer info

Home Forums Calendar Products Events Calendar PRO Change the word "Website" on backend Organizer info

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1042679
    wendy
    Participant

    I would like to change the word “Website” on the back end so that when I enter a new organizer i see the word “Role” instead of “Website”. I tried to modify the code below in the organizer.php file in modules/meta and replace the word Website with the word Role, but it didnt work. Can you please point me to the file that contains the word that i should replace? (and yes, i have created a new folder – tribe-events and created subfolders for module and meta and copied the organizer.php file to the new directories.)

    `<?php esc_html_e( ‘Website:’, ‘the-events-calendar’ ) ?>

    #1043246
    Nico
    Member

    Hey Wendy,

    Thanks for reaching out to us! I’ll help you on this…

    Maybe the best way to change this over the front-end and back-end, might be to change the translation string. This will affect all occurrences of ‘Website:’, not sure if that’s what you want to achieve here.

    The code for that is the following, just add it to your theme’s function.php file:

    function tribe_custom_theme_text ( $translations, $text, $domain ) {

    $custom_text = array(
    'Website:' => 'Role:'
    );

    if(strpos($domain, 'the-events-calendar') === 0 && array_key_exists($text, $custom_text) ) {
    $text = $custom_text[$text];
    }

    return $text;
    }
    add_filter('gettext', 'tribe_custom_theme_text', 20, 3);

    Please let me know if this works for you,
    Best,
    Nico

    #1076293
    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 ‘Change the word "Website" on backend Organizer info’ is closed to new replies.