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!
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
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! :-)