Hi,
I noticed ajax search won’t return instant search results when administration over ssl is turned on (via define(‘FORCE_SSL_ADMIN’, true); in wp-config.php; source: http://codex.wordpress.org/Administration_Over_SSL). So even if only the admin part is secured and main page is not, instant search results won’t show. When I access page with https prefix ajax search starts to work without any problems. It’s clean installation without any plugins and only with child theme.
Please help :)
Hi pgps!
Your best bet is to contact the host/server administrator. I found an useful article here: http://www.d-mueller.de/blog/cross-domain-ajax-guide/ and here: http://stackoverflow.com/questions/10640596/header-set-access-control-allow-origin-in-htaccess-doesnt-work (htaccess configuration). Note that your current configuration breaks all ajax calls (WooCommerce, etc. ajax calls too) and it’s not a theme issue. If you want to deactivate the ajax search (and you don’t need to use any ajax calls from the frontend with WooCommerce, etc) you can add this code to the child theme functions.php file:
add_filter('avf_frontend_search_form_param', 'avia_deactivate_ajax_search',10,1);
function avia_deactivate_ajax_search($params)
{
$params['ajax_disable'] = true;
return $params;
}
Cheers!
Peter