Forum Replies Created
-
AuthorPosts
-
James
ParticipantHi everyone,
A seemingly simple question but for the life of me I can’t find an answer.
I have a menu which lists all the events by Tags,
https://www.jamesdoylephoto.com/tag/photography-activities/On each event there is some wording “Filed Under: Tagged With:”, followed by the tags.
I want to remove the words “Filed Under:” and maybe change the “Tagged With:” to something else.
Any assistance would be appreciated.
Cheers
JamesJames
ParticipantHi George and Hans,
Good for you Hans for reporting your find. I also have come across a number of people, let’s say from the sub-continent who have advertised a plugin which when you look at the code is obviously the “tribe-event-calendar”. They were pretty sloppy because they left all the commented wording in the code.
But like George said, it would be pretty hard to prosecute these people and even if you got rid of one, there would be a 100 more to take their place. It’s a sad world when people have to rub others of their hard work.
The original Events Calendar will always be supported by me!
James
ParticipantThanks Geoff.
I did that but when I imported them into the new install they never installed and the message was “failed to install”. Not to worry, I ended up getting them back on the new site from a backup table.
Thanks for your suggestion all the same.
Cheers
James
James
ParticipantSorry I forgot to add I need to import the data into the clean install. ๐
James
ParticipantHi again Brian,
That worked great as well.
Thanks for all your help on these emails Brian, I’m all good now so you can close this thread if you like.
Cheers,
James ๐
James
ParticipantHi Brian,
Thanks for that, it worked like a treat. You guys and gals there seem to have the answers. ๐
Now I have one more question to finish off my emails.
On the ticket email the heading text is a little too big and moves onto two lines. I looked over the files again and can’t find the css selector to reduce it’s size a smidge. Any help on that?
Thanks
Cheers
James
James
ParticipantHi George,
Thanks for the rewritten code.
The code worked but only in the “backend” of the site, the frontend didn’t change at all.
I think I’ll wait for the calendar update. Save you worrying about putting more time into this.
I did mean to say early in the piece, that I really like the Event Calendar system and find it really flexible and does what I need it to do. I don’t think anyone would have any reason to complain about the support either, you do a great job, all in all.
Thanks for your assistance to date George, you have been really helpful.
Cheers,
James ๐
James
ParticipantSorry I goofed with the link, here it is
James
ParticipantJames
ParticipantHello George,
Thanks for offering to continue with this.
A copy of the functions.php code can be found at https://gist.github.com/anonymous/c761b51310b1f49d5fa4
Thanks George,
James
James
ParticipantHi George,
Ok I’ve been doing a bit of testing with possible solutions. (but I am no coder or developer)
I’m running Genesis with the Dynamik Website Builder Child Theme.
If I put the event calendar code in the actual functions.php file of the child theme, I get a “white screen of death”. If I put the code in the custom function file, nothing changes. This custom function section code is stored in a custom-functions.php file within the child theme folder.
So I installed the wordpress twenty fourteen theme and put the event calendar code in the twenty fourteen theme’s functions.php file, it sort of worked, it did make changes to the names but the plural names were incorrect. Instead of “Activities” it showed “activitys”.
The wording โEvent Managerโ you mention, was a typo error on my part but being a comment I didn’t think it would make any difference. I have now change the event calendar code to exactly as it is on your website, only changing the wording of event, events, as per instructions.
I’m now thinking there isn’t any easy solution for me whilst using the Dynamik Website Builder Child Theme, so I have resigned myself to having the words “event” on my site.
Regards
James
James
ParticipantHi George,
Thanks for getting back to me.
I’m using Dynamik Website Builder Child Theme which has a custom function section, where you place custom function code. I added the code into that section. Below is a copy of all the code in this custom function section as I don’t know how to use Gist. (there is no spaces at beginning or end of code)
Thanks
James
<?php
/* Do not remove this line. Add your functions below. *//**
* Enables the HTTP Strict Transport Security (HSTS) header.
*
* @since 1.0.0
*/
function tgm_io_strict_transport_security() {header( ‘Strict-Transport-Security: max-age=10886400; includeSubDomains; preload’ );
}
/*
* CHANGING ANY TEXT (STRING) IN THE EVENTS CALENDAR */ 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(
‘Venue’ => ‘Meetup Location’,
‘Tickets’ => ‘Book here to attend this activity’,
‘Related Events’ => ‘Other Activities’,
‘Other’ => ‘Other Details’,
‘Organizer’ => ‘Mentor/Guide’,
‘Details’ => ‘When/Cost’,
);// 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);/* Genesis WooCommerce Plugin */
add_theme_support( ‘genesis-connect-woocommerce’ );//* Remove Additional Information Tab from WooCommerce
add_filter( ‘woocommerce_product_tabs’, ‘woo_remove_product_tabs’, 98 );
function woo_remove_product_tabs( $tabs ) {
unset( $tabs[‘additional_information’] ); // Remove the additional information tab
return $tabs;
}//* Customize the post info function
add_filter( ‘genesis_post_info’, ‘sp_post_info_filter’ ); function sp_post_info_filter($post_info) { if ( !is_page() ) {
$post_info = ‘[post_date] by [post_author_link] [post_comments] [post_edit]’;
return $post_info;
}}//* Customize the footer credits
add_filter( ‘genesis_footer_creds_text’, ‘sp_footer_creds_text’ ); function sp_footer_creds_text() {
echo ‘<div class=”creds”><p>’;
echo ‘Copyright © ‘;
echo date(‘2015’);
echo ‘ · James Doyle Photography | All Rights Reserved | ABN: 35 872 159 410 ‘;
echo ‘</p></div>’;
}define (‘YOAST_VIDEO_SITEMAP_BASENAME’, ‘vsvideo’);
//* Forcing Categories to display in List View in The Events Calendar add_action(‘parse_query’, ‘use_list_view_for_categories’, 60);
function use_list_view_for_categories($query) {
// Run once
remove_action(‘parse_query’, ‘use_list_view_for_categories’, 60);// Interfere only for non-ajax Tribe category requests not already destined to be presented by list view
if (defined(‘DOING_AJAX’) && DOING_AJAX) return;
if (!isset($query->tribe_is_event_category) || !$query->tribe_is_event_category) return;
if (tribe_is_view(‘upcoming’)) return;// Obtain the query term and get a link to list view for that term
$main_tax_query = $query->tax_query->queries[0];
$term = get_term_by(‘slug’, $main_tax_query[‘terms’][0], TribeEvents::TAXONOMY);
$link = tribe_get_listview_link($term->term_id);// Try to redirect
wp_redirect($link);
exit();
}add_action(‘wp_410_response’,’load_410_template’,1,0);
function load_410_template() {
require(‘410.php’);
exit(0);
}//* Modify the speak your mind title in comments
add_filter( ‘comment_form_defaults’, ‘sp_comment_form_defaults’ ); function sp_comment_form_defaults( $defaults ) {
$defaults[‘title_reply’] = __( ‘Leave a Comment’ );
return $defaults;}
//* Redirect Venues in Event Manager
add_action( ‘init’, ‘fix_tribe_venue_org_slugs’, 11 );
function fix_tribe_venue_org_slugs() {
if ( ! class_exists( ‘TribeEvents’ ) ) return;
$tribe = TribeEvents::instance();
$tribe->postVenueTypeArgs[‘rewrite’][‘slug’] = ‘venue’; }//* Change Event Name to Activities in Event Manager
add_filter(‘gettext’, ‘theme_filter_text’, 10, 3);
function theme_filter_text( $translations, $text, $domain ) { // If this text domain starts with “tribe-”
if(strpos($domain, ‘tribe-‘) === 0) {
// Replace upper case, lower case, singular, and plural $text = str_replace( // Text to search for array(‘Event’, ‘event’, ‘Events’, ‘events’),// Text to replace it with — change this for your needs array(‘Activity’, ‘activity’, ‘Activities’, ‘activities’), $text );
}
return $text;
}add_filter(‘ngettext’, ‘theme_filter_ntext’, 10, 5);
function theme_filter_ntext( $translation, $single, $plural, $number, $domain ) { // If this text domain starts with “tribe-”
if(strpos($domain, ‘tribe-‘) === 0) {
// Replace upper case, lower case, singular, and plural if( $number > 1 ) { $plural = str_replace( // Text to search for array(‘Events’, ‘events’),// Text to replace it with — change this for your needs array(‘Activities’, ‘activities’), $plural );
return $plural;
} else {
$single = str_replace(
// Text to search for
array(‘Event’, ‘event’),// Text to replace it with — change this for your needs array(‘Activity’, ‘activity’), $single );
return $single;
}
}
}James
ParticipantI found this after posting my question https://theeventscalendar.com/support/forums/topic/changing-event-to-something-else/ and I modified the code from meeting to Activity but it didn’t seem to change anything. I cleared all caches but still didn’t change.
James
ParticipantA quick update!
Although not a perfect solution, I have created a 301 redirect from the old organiser link URL to somewhere more useful on my site, the about me page, and that seems to work.
James
ParticipantIf the the link can’t be removed, I would be happy if I could change the link URL.
-
AuthorPosts
