"There were no results found" to "There were no results found–see next month"

Home › Forums › Calendar Products › Filter Bar › "There were no results found" to "There were no results found–see next month"

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #956940
    Nicole
    Participant

    How would i change the verbage “There were no results found” to “There were no results found–see next month”? My events dont start til next month.
    thanks.

    #957109
    Brian
    Member

    Hi,

    Thanks for using our plugin.

    To change that text please add the following to your theme’s function.php:

    https://gist.github.com/jesseeproductions/5e4ded1c644580a7ee11

    You can change the sentence to anything you would like.

    Thanks

    #957160
    Nicole
    Participant

    hello,
    i added it exactly as shown and still says ‘There were no results found.’
    judy

    #957310
    Brian
    Member

    Sorry it did not work. It worked for me so there is not much I can do, but…

    Please confirm it is in your theme’s function.php if you have a child theme try in there or in the parent theme, but not both at the same time.

    #957388
    Nicole
    Participant

    it didnt work for me. i used

    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.' 
    	);
     
    	// 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;
    }
    #957532
    Brian
    Member

    This exact coding should work:

    https://gist.github.com/jesseeproductions/5e4ded1c644580a7ee11

    I do not know if your coding would work or not.

    #957600
    Nicole
    Participant

    my code did work…thanks for following up.

    #957645
    Brian
    Member

    I am glad to see you were able to figure it out.

    I am going to go ahead and close this ticket. If you have a similar issue or another in the future, please do not hesitate to create a new ticket.

    Thanks!

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘"There were no results found" to "There were no results found–see next month"’ is closed to new replies.