Home › Forums › Calendar Products › Filter Bar › "There were no results found" to "There were no results found–see next month"
- This topic has 7 replies, 2 voices, and was last updated 9 years ago by Brian.
-
AuthorPosts
-
April 20, 2015 at 9:53 pm #956940NicoleParticipant
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.April 21, 2015 at 11:48 am #957109BrianKeymasterHi,
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
April 21, 2015 at 2:42 pm #957160NicoleParticipanthello,
i added it exactly as shown and still says ‘There were no results found.’
judyApril 22, 2015 at 5:53 am #957310BrianKeymasterSorry 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.
April 22, 2015 at 8:53 am #957388NicoleParticipantit 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; }
April 22, 2015 at 3:14 pm #957532BrianKeymasterThis exact coding should work:
https://gist.github.com/jesseeproductions/5e4ded1c644580a7ee11
I do not know if your coding would work or not.
April 22, 2015 at 8:27 pm #957600NicoleParticipantmy code did work…thanks for following up.
April 23, 2015 at 5:41 am #957645BrianKeymasterI 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!
-
AuthorPosts
- The topic ‘"There were no results found" to "There were no results found–see next month"’ is closed to new replies.