Plugin Author
ILLID
(@mihail-barinov)
Hello,
So, as I understand, before Divi update you add plugin search form to the header by manually adding php code. Is that right?
If you have latest plugin version than please go to plugin settings page and enable ‘Seamless integration’ option. This must automatically replace Divi forms with plugin ones.
Regards
Thread Starter
LPackman
(@furnituresuppliesuk)
Hello,
Thank you for your reply.
Yes that is correct previously added using php code.
It seems seamless is already selected but no ajax live search is present on front end.
Unfortunately the site is on a local machine, I can create an online version and provide access is this helps.
Kind regards
Thread Starter
LPackman
(@furnituresuppliesuk)
Not sure if this is useful.
The old Divi site using dev tools shows button as: et_search_icon
The new Divi version shows as: et_pb_menu__icon et_pb_menu__search-button
Kind regards
Plugin Author
ILLID
(@mihail-barinov)
Please tell me Divi theme version that you are currently using?
Plugin Author
ILLID
(@mihail-barinov)
Hm, I just check ‘Seamless integration’ for Divi 4.0.6 and all seems to work fine.
Please tell me what Divi search form you want to replace? Standard form in the header?
Regards
Plugin Author
ILLID
(@mihail-barinov)
Looks like I understand the problem. Please use following code snippet
add_filter( 'et_pb_search_shortcode_output', 'my_divi_builder_search_module' );
function my_divi_builder_search_module( $output ) {
if ( function_exists( 'aws_get_search_form' ) && is_string( $output ) ) {
$pattern = '/(<form[\s\S]*?<\/form>)/i';
$form = aws_get_search_form(false);
if ( strpos( $output, 'aws-container' ) !== false ) {
$pattern = '/(<div class="aws-container"[\s\S]*?<form.*?<\/form><\/div>)/i';
}
$output = trim(preg_replace('/\s\s+/', ' ', $output));
$output = preg_replace( $pattern, $form, $output );
}
return $output;
}
Thread Starter
LPackman
(@furnituresuppliesuk)
Hi @mihail-barinov.
Thank you for that, unfortunately its still not working for me.
I will email you credentials to a test site I have created, I hope thats ok.
Kind regards
Thread Starter
LPackman
(@furnituresuppliesuk)
Just writing to report that the edits your team made to the plugin resolved the issue!
Also a big thank you for your help in resolving the issue without any delay.
I must say AWS customer service is excellent if only all developers acted as quickly and professionally as you guys, always there when I need help with the plugin.
100% 5 star service every time, keep up the great work 🙂