Override text In default bar

Home Forums Calendar Products Events Calendar PRO Override text In default bar

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1523110
    Kristin
    Participant

    I would like to override “Events In” text on the date selector. I tried with the “function tribe_custom_theme_text ( $translation, $text, $domain )” mentioned here but it did not work.

    Please advise.

    Thanks

    #1523327
    Patricia
    Member

    Hey Kristin,

    Thank you for reaching out to us!

    To achieve what you want, please add the following snippet to your theme’s functions.php file and replace “Events In” with the text you want:

    function change_date_picker() {
    	$caption = 'Date';
    	
    	if ( tribe_is_month() ) {
    		$caption = 'Events In';
    	} elseif ( tribe_is_list_view() ) {
    		$caption = 'Events From';
    	} elseif ( tribe_is_day() ) {
    		$caption = 'Day Of';
    	}
    	
    	return $caption;
    }
    add_filter( 'tribe_bar_datepicker_caption', 'change_date_picker' );

    I hope this helps! If you have any other questions at all please feel free to let me know and I’d be happy to help as best I can!

    Cheers,

    Patricia

    #1524292
    Kristin
    Participant

    Thanks! Can you tell me how to override the word “Date” in the month select box as well?

    #1524870
    Patricia
    Member

    Hi Kristin,

    You are welcome! Yes, you can override the word “Date” on Month view by adding the following snippet in your theme’s functions.php file:

    function change_date_search_default_value() {
    	if ( tribe_is_month() ) {
    		$caption = 'Text';
    		return $caption;
    	}
    }
    add_filter( 'tribe_events_bar_date_search_default_value', 'change_date_search_default_value' );

    I hope this helps! Let me know if you have any other questions.

    Best Regards,

    Patricia

    #1540966
    Support Droid
    Keymaster

    Hey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.

    Thanks so much!
    The Events Calendar Support Team

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Override text In default bar’ is closed to new replies.