This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

Reply To: Issues on translating En in other languages

Home Forums Product Support Forums Ajax Search Pro for WordPress Support Issues on translating En in other languages Reply To: Issues on translating En in other languages

#45651
Ernest MarcinkoErnest Marcinko
Keymaster

Hi,

Sure, I can help you with that, but it requires changing one of the core files unfortuantely. I need to inform you that this change may have some negative effects, as the response body is not in json format, so the other plugin may encounter issues when trying to deserialize.

To change the header type:
– Open up the wp-content\plugins\ajax-search-pro\includes\classes\Hooks\Ajax\Search.php file on your server
– Go to line 121, which should be this: Ajax::prepareHeaders();
– Change it to: Ajax::prepareHeaders('application/json');
– Save the file

Now the responses from the live search are marked with the application/json header.