Plugin Author
ILLID
(@mihail-barinov)
Hello,
The problem here can be in that in version 1.76 text field was changed from
type="text"
to
type="search"
Looks like you have some styles specific for text input type.
So you can change it to old input type by using this code snippet
add_filter( 'aws_searchbox_markup', 'my_aws_searchbox_markup' );
function my_aws_searchbox_markup( $markup ) {
$markup = str_replace( '<input type="search"', '<input type="text"', $markup );
return $markup;
}
Thread Starter
Dakid
(@myiah)
says there is an fatal error when i add the code to the functions.php file
Please help
Plugin Author
ILLID
(@mihail-barinov)
Please try this code
add_filter( 'aws_searchbox_markup', 'my_aws_searchbox_markup' );
function my_aws_searchbox_markup( $markup ) {
$pattern = '/<input[\S\s]*?type="search"/i';
$markup = preg_replace( $pattern, '<input type="text"', $markup );
return $markup;
}
Thread Starter
Dakid
(@myiah)
Thank you that worked.
What about the search bar doesnt work neither on update. it is the one that is on mobile
its the white tab bar with the search icon in it when you are on mobile. It stopped working when you update to the new version.
Plugin Author
ILLID
(@mihail-barinov)
Sorry, doesn’t clear for me.
You have a problem with displaying search form on mobile?
If so please tell me where on mobile devices this search form must be?
Regards
Thread Starter
Dakid
(@myiah)
Never-mind i believe it is fix thanks for your help and support 🙂