Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #368035

    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

    #368243

    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

    #369133

    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

    #369308

    Hey!

    Use the Codestyling Localization plugin. Search for the strings inside the $search_messages array.

    Cheers!
    Ismael

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.