Created
October 14, 2022 21:09
-
-
Save andrasguseo/229ca1107a7ee7e57a2fc0a5b4ab3af5 to your computer and use it in GitHub Desktop.
TEC > Customize the "No results" search message
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* Description: Customize the "No results" search message | |
* Usage: Paste the below snippet into your active (child) theme's functions.php file | |
* | |
* Plugin: The Events Calendar | |
* Author: Andras Guseo | |
* Last updated: 2022-10-12 | |
*/ | |
add_filter( 'tribe_events_views_v2_messages_map', 'tec_custom_no_result_text' ); | |
function tec_custom_no_result_text ( $map ) { | |
$map['no_results_found_w_keyword'] .= '<br/>Please try <a href="" onclick="window.location.reload(true)" style="text-decoration: underline;">refreshing</a> the page.'; | |
return $map; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The above snippet will produce something like this