Plugin Author
ILLID
(@mihail-barinov)
Hello,
It depends on what search form of Divi theme you want to replace.
As I see for search form in the header its does’t works.
You can just try to activate ‘Seamless integration’ option and look if its will work for you. Anyway ypu also can use build-in widget or shortcode for displaying plugin search form.
Thanks.
Thank you for answering so quickly, and for the fine work you’ve done with the plugin.
I do use the widget in the sidebar and the shortcode in some of the pages.
Divi has a search (magnifier) icon next to the menu icon that keeps the search form handy in the mobile view. So making it work with the standard search form in the header would be great, as the sidebar widget moves to the bottom of the page in mobile view (taking it out of the users’ viewport).
Best.
PS: BTW, the Donate button in https://wordpress.org/plugins/advanced-woo-search/ leads to an error.
Plugin Author
ILLID
(@mihail-barinov)
On of the solution for Divi theme – add search form to the header manually.
So you need to open Divi/header.php file and replace lines
<form role="search" method="get" class="et-search-form" action="<?php echo esc_url( home_url( '/' ) ); ?>">
<?php
printf( '<input type="search" class="et-search-field" placeholder="%1$s" value="%2$s" name="s" title="%3$s" />',
esc_attr__( 'Search …', 'Divi' ),
get_search_query(),
esc_attr__( 'Search for:', 'Divi' )
);
?>
</form>
with
<?php echo do_shortcode( '[aws_search_form]' ); ?>
You probably will be need to make some changes in theme css styles for header search form.
Good idea. Thanks!
I’ll try that as soon as possible.
Have a nice weekend.
Hi there, I’m also trying to replace default divi search. I replaced the above code but search seems the same:
https://scooters.ltd.uk/?s=honda+forza