Plugin Author
ILLID
(@mihail-barinov)
Hello,
So you are talking about broken search form in the Astra header?
Please try to use following code snippet:
add_filter( 'aws_searchbox_markup', 'astra_aws_searchbox_markup' );
function astra_aws_searchbox_markup( $markup ) {
$markup = str_replace( 'aws-container', 'aws-container search-form', $markup );
return $markup;
}
You need to add it somewhere outside the plugins folder. For example, inside functions.php file of your theme or use some plugin for adding code snippets.
Regards
Thanks for the response. All it does is crash the website and cause a fatal error:
Error Details
=============
An error of type E_PARSE was caused in line 32 of the file /home/customer/www/…/public_html/wp-content/themes/…/functions.php. Error message: syntax error, unexpected ‘&’
Plugin Author
ILLID
(@mihail-barinov)
I think you add some encoded chars inside your functions.php file.
Can you send me that functions.php file that generate error?
Regards
I figured it out. The code you sent did the trick. Thanks for the help here.