Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Brian

    (@brianjessee)

    Hi,

    Thanks for using our plugins.

    I can help out.

    The file that controls the Search bar is located here:

    the-events-calendar\src\views\modules\bar.php

    You can follow our themer’s guide to move and edit that template in your theme:

    https://theeventscalendar.com/knowledgebase/themers-guide/

    We also have this guide to changing a word or phrase that might help out:

    https://theeventscalendar.com/knowledgebase/change-the-wording-of-any-bit-of-text-or-string/

    Let me know if you have any follow up questions.

    Thanks

    Thread Starter reclifford

    (@reclifford)

    Hello,

    I see this affects the ‘View as’ option but i do not see the ‘Events In’ section title anywhere.

    Is there a particular code I can put in my function.php to override it saying ‘Events In’?

    Thread Starter reclifford

    (@reclifford)

    under the search events stuff.

    I also having the same issue. Where to change the “Events In”, “Find Events” and “Events For Month 2015”.

    Please help me how to change this text.

    Best Regards,
    SWM

    Hi there reclifford,

    Our text-domain changed recently and that’s why the one in the article isn’t working! Add this snippet to your functions.php:

    function tribe_custom_theme_text ( $translations, $text, $domain ) {
    	$custom_text = array(
    		'%s In' => 'Some Other String',
    	);
    	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);

    That should do the trick for you!

    @smashwebmedia, try this snippet and also add the other strings you wish to translate in there.

    Please let us know if you still need help with this,
    Best,
    Nico

    Thread Starter reclifford

    (@reclifford)

    Worked perfectly!!!

    Thank you!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Change 'Events In' Date Text in Top Search Section’ is closed to new replies.