Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1244951

    Hi,
    To edit the search box text, I found this function in another thread:

    add_filter('avf_frontend_search_form_param', avf_frontend_search_form_param_mod, 10, 1 );
    function avf_frontend_search_form_param_mod( array $params )
    {
    	$params['placeholder'] = __('Rechercher un produit...','avia_framework');
    	return $params;
    }

    It used to work, but from some weeks, an error message appears in my back office: https://imgur.com/EyhRykp.

    Could you please help me to fix this?

    If needed, you can find a link and credentials to my website in private content.
    Thanks a lot!

    #1245446

    Hey fcp,
    Sorry for the late reply, your code was missing commas, I corrected, please check.

    Please compare this corrected code with the above code:

    add_filter('avf_frontend_search_form_param', 'avf_frontend_search_form_param_mod', 10, 1 );
    function avf_frontend_search_form_param_mod( array $params )
    {
    	$params['placeholder'] = __('Rechercher un produit...','avia_framework');
    	return $params;
    }

    Best regards,
    Mike

    #1256106

    Hi Mike,
    Sorry for the very late reply!
    Everything seems to be ok now.
    This topic can be closed.
    Thank you very much for your help! :-)

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Edit the Search Box text’ is closed to new replies.