This is easily accomplished by editing your WP theme’s search.php page. Check the link for a PDF/DOCX*/XLSX* extension and drop in an icon.
I could only get the plugin to activate by commenting out line 352, THEN activating. Once I did that, I could fill in the settings, but uncommenting the line resulted in the plug-in crashing again. I finally ended up hard-coding the API key:
#$options['headers']['Ocp-Apim-Subscription-Key'] = self::get_args()['api_key'];
$options['headers']['Ocp-Apim-Subscription-Key']="XXXXXXXXXXXXXXXXXXXXXXXXX";
This is obviously a problem for multiple sites unless I create copies of the plug-in.
Any assistance would be appreciated!
Thanks,
John
I’m experiencing the same thing. I cannot activate the plugin. The error is:
Plugin could not be activated because it triggered a fatal error.
Parse error: syntax error, unexpected '[' in /srv/www/apps/wordpress/installs/production/wp-content/plugins/wp-bing-search/wp-bing-search.php on line 352