Replace Theme Search
-
I am using the Beaver Builder Theme and child theme. The parent theme uses searchform.php, and I also copied the searchform.php file to the child theme.
When I activate the “Try to replace the theme search with Ajax Search Lite form?” option, it doesn’t work to replace the theme’s/child theme’s search in the header.
Below is the contents of the searchform.php file if that helps:
<form method=”get” role=”search” action=”<?php echo esc_url( home_url( ‘/’ ) ); ?>” title=”<?php echo esc_attr_x( ‘Type and press Enter to search.’, ‘Search form mouse hover title.’, ‘fl-automator’ ); ?>”>
<input type=”text” class=”fl-search-input” name=”s” class=”form-control” value=”<?php echo esc_attr_x( ‘Search’, ‘Search form field placeholder text.’, ‘fl-automator’ ); ?>” onfocus=”if (this.value == ‘<?php echo esc_attr_x( ‘Search’, ‘Search form field placeholder text.’, ‘fl-automator’ ); ?>’) { this.value = ”; }” onblur=”if (this.value == ”) this.value='<?php echo esc_attr_x( ‘Search’, ‘Search form field placeholder text.’, ‘fl-automator’ ); ?>’;”>
</form>—-
Thanks for any help you can provide!
The topic ‘Replace Theme Search’ is closed to new replies.