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
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.