Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
TEC > Customize the "No results" search message
<?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;
}
@andrasguseo
Copy link
Author

andrasguseo commented Oct 14, 2022

The above snippet will produce something like this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment