change 'Event Category' in Event Detail page

Home Forums Calendar Products Events Calendar PRO change 'Event Category' in Event Detail page

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #957928
    Nicole
    Participant

    hello,
    where can i change ‘Event Category’ to ‘Internships’ in Event Detail page?

    detail page

    i would also like to turn off the links of those categories.

    I tried putting it into my formerly successful functions.php snippet, but no go:

    function tribe_custom_theme_text ( $translations, $text, $domain ) {
     
    	// Put your custom text here in a key => value pair
    	// Example: 'Text you want to change' => 'This is what it will be changed to'
    	// The text you want to change is the key, and it is case-sensitive
    	// The text you want to change it to is the value
    	// You can freely add or remove key => values, but make sure to separate them with a comma
    	// This example changes the label "Venue" to "Location", and "Related Events" to "Similar Events"
    	$custom_text = array(
    		'Select' => 'Location',
    		'All Events' => 'All Internships',
    		'There were no results found.' => 'There were no results found — see next month.',
    		'Event Categories:' => 'Internships'
    	);
     
    	// If this text domain starts with "tribe-", and we have replacement text
    	if(strpos($domain, 'tribe-') === 0 && array_key_exists($text, $custom_text) ) {
    		$text = $custom_text[$text];
    	}
     
    	return $text;
    }
    add_filter('gettext', 'tribe_custom_theme_text', 20, 3);

    and also

    add_action( 'tribe_pre_get_view', 'change_custom_field_meta_label' );
    
    function change_custom_field_meta_label() {
    	tribe_set_meta_label( 'tribe_event_tag', 'NEW LABEL!', 'meta' );
    	tribe_set_meta_label( 'tribe_event_category', 'Internship', 'meta' );
    }

    please tell me its an easy fix. thank you.

    #957974
    Gustavo Bordoni
    Keymaster

    Hi Nicole,

    Thanks for reaching out to us here on the support Forum.

    I created a Plugin Snippet that will solve your Issue, keep in mind that you will need to follow the instructions on the Link below to install it;

    https://github.com/bordoni/tec-forum-support/tree/plugin-957928

    After installing the plugin, you will need to Change two fields on your Events » Settings:

    • Category Singular
    • Category Plural

    My Best Regards,

    #958223
    Nicole
    Participant

    Hi Gustavo,
    that didnt work–it kicked up these errors:

    That is a lot of code! All i need it for that phrase to change on the Event detail page. thanks a lot!!!
    judy

    #958225
    Nicole
    Participant

    #958226
    Nicole
    Participant
    #958227
    Gustavo Bordoni
    Keymaster

    Hi Nicole,

    Sorry for that, I used the wrong Function in that plugin and Now it’s already fixed.

    Just delete the plugin and follow the instructions there again and you should be good to go.

    Note: The links are not working because they are in the .pdf format, but thanks anyways.

    My Best Regards,

    #958235
    Nicole
    Participant

    you rock 100%. have a great weekend!
    judy

    #958251
    Gustavo Bordoni
    Keymaster

    That is awesome Nicole. Have a nice Weekend you too.

    I’m marking the correct answer and closing this topic.

    My Best Regards,

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘change 'Event Category' in Event Detail page’ is closed to new replies.