Home › Forums › Calendar Products › Events Calendar PRO › change 'Event Category' in Event Detail page
- This topic has 7 replies, 2 voices, and was last updated 9 years ago by Gustavo Bordoni.
-
AuthorPosts
-
April 23, 2015 at 3:44 pm #957928NicoleParticipant
hello,
where can i change ‘Event Category’ to ‘Internships’ in Event 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.
April 23, 2015 at 10:41 pm #957974Gustavo BordoniKeymasterHi 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,
April 24, 2015 at 4:01 pm #958223NicoleParticipantHi 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!!!
judyApril 24, 2015 at 4:03 pm #958225NicoleParticipantApril 24, 2015 at 4:04 pm #958226NicoleParticipantnot sure if the links are showing up. you can see them at:
http://www.seocareer.org/wordpress2014/wp-content/themes/Builder-Air-Career2/Screen Shot 2015-04-24 at 3.55.06 PM.pdf
http://www.seocareer.org/wordpress2014/wp-content/themes/Builder-Air-Career2/Screen Shot 2015-04-24 at 3.55.02 PM.pdf
http://www.seocareer.org/wordpress2014/wp-content/themes/Builder-Air-Career2/Screen Shot 2015-04-24 at 3.54.54 PM.pdf
April 24, 2015 at 4:09 pm #958227Gustavo BordoniKeymasterHi 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,
April 24, 2015 at 4:56 pm #958235NicoleParticipantyou rock 100%. have a great weekend!
judyApril 24, 2015 at 5:45 pm #958251Gustavo BordoniKeymasterThat is awesome Nicole. Have a nice Weekend you too.
I’m marking the correct answer and closing this topic.
My Best Regards,
-
AuthorPosts
- The topic ‘change 'Event Category' in Event Detail page’ is closed to new replies.