steviger

Forum Replies Created

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • in reply to: Remove the word "Upcoming" in Upcoming Events title #1500439
    steviger
    Participant

    Hi Jaime,

    Yep that did the trick, thanks!

    Regards,

    Steven

    in reply to: Remove the word "Upcoming" in Upcoming Events title #1500368
    steviger
    Participant

    Hi Jaime,

    Thanks for your reply. Unfortunately it didn’t work. Since I’m not exactly a wizard with codes, I probably did something wrong. My code

    function tribe_custom_theme_text ( $translation, $text, $domain ) {
     
    	
    	$custom_text = array(
    		'Upcoming Events' => 'Events'
    		
    	);
     
    	// If this text domain starts with "tribe-", "the-events-", or "event-" and we have replacement text
        	if( (strpos($domain, 'tribe-') === 0 || strpos($domain, 'the-events-') === 0 || strpos($domain, 'event-') === 0) && array_key_exists($translation, $custom_text) ) {
    		$translation = $custom_text[$translation];
    	}
    
        return $translation;
    }
    add_filter('gettext', 'tribe_custom_theme_text', 20, 3);
    

    When I give you admin access, would you mind to have a look yourself? I’m realy lost see.

    Thanks it advance!

    Regards,

    Steven

    in reply to: Remove the word "Upcoming" in Upcoming Events title #1499487
    steviger
    Participant

    I thought I’d give it a try anyway but I don’t get it to work. Please see screenshot for the strings I’ve used.

    Regards,

    Steven

    in reply to: Remove the word "Upcoming" in Upcoming Events title #1499480
    steviger
    Participant

    Hi Jaime,

    I was hoping that a small code in my Child’s function.php would do the trick. I’d rather not use yet another plugin. I don’t need anything translated b.t.w. Just want to remove the word “Upcoming”. So I’m afraid this plugin won’t help me.

    Regards,

    Steven

Viewing 4 posts - 1 through 4 (of 4 total)