hi,
when i use the ajax search in the header and no items where found a text is displayed. where can i change it? didn’t find it in the language file..
thanks for help.
mathias
Hey MathiasVie!
Thank you for using our theme.
You can change it with a filter. In functions,php at the end put the following:
function my_search_text( $search_messages )
{
// modify the array here
return $search_messages;
}
add_filter( 'avf_ajax_search_messages', 'my_search_text', 10, 1);
The possible values to change you find at
enfold\functions-enfold.php line 105:
$search_messages = array(
'no_criteria_matched' => __("Sorry, no posts matched your criteria", 'avia_framework'),
'another_search_term' => __("Please try another search term", 'avia_framework'),
'time_format' => get_option('date_format'),
'all_results_query' => http_build_query($_REQUEST),
'all_results_link' => home_url('?' . http_build_query($_REQUEST)),
'view_all_results' => __('View all results','avia_framework')
);
Cheers!
Günter
Thank you. I am using the german localization and there is already a german text shown. how can i change it so it works in every language?
best
mathias