I am not very experienced so please excuse my ignorance. At present the search function is set-up to search within the Enfold website. However I would like when a person enters something in a search box to go to a different website – sort of a like a back-end on my website. That is where all of our products are.
My current website at http://www.bw-wholesale.com/ has this search functionality. You can see the results if you try and search a product.
I want this exact same search feature in my enfold website. Where do I change the search functionality?
Thanks for your help.
Hey!
Try adding this at the very end of your theme / child theme functions.php file:
add_filter('avf_frontend_search_form_param', function($params) {
$params['form_action'] = 'http://129554-frv.espwebsite.com/ProductResults/?';
$params['search_id'] = 'SearchTerms';
$params['ajax_disable'] = true;
return $params;
});
Cheers!
Josue
Thanks Josue. Sorry but where do I find the very end of the theme Functions.php file?
Open the file and paste the code at the end.
Worked perfect. Thanks so much – you guys are great.
You are welcome, glad to help :)
Regards,
Josue