Hello @cuffley
Thank you very much for using our plugin. The plugin does not modify the URL to search results configure on your website. It adds the highlight parameter if you ticked the “Highlight the terms in resulting page” attribute in the plugin settings page. If you want to remove the parameter from the results page URL, please untick the checkbox in the plugin settings.
Best regards.
Thanks for your reply.
I don’t have the pro version and the checkboxes are grayed out and set at off, but I still get the highlighted results.
Hello @cuffley
Could you please provide the link to the page that contains the search box to check its settings?
Best regards.
Hello @cuffley
Please follow the steps below:
- Open the “/wp-content/plugins/search-in-place/php/searchinplace.clss.php” file with the text editor of your choice.
- Go to the piece of code:
$_link_parts[0] .= ( ( strpos( $_link_parts[0], '?' ) === false ) ? '?' : '&' ) . 'highlight=' . urlencode( $s );
And commend it as follows:
// $_link_parts[0] .= ( ( strpos( $_link_parts[0], '?' ) === false ) ? '?' : '&' ) . 'highlight=' . urlencode( $s );
Please note the plugin does not generate new URLs, it only pass a parameter the resulting pages.
Best regards.
-
This reply was modified 1 year, 8 months ago by
codepeople.
Hello @cuffley
We have released a plugin update (just now) that removes the highlight parameter from the URL without affecting the functionality, and you don’t need to edit the plugin files.
Best regards.
Thanks very much.
I updated the plugin and I no longer have the “? highlight” part in the url which is great.
But it is still doing the “Highlight the terms in resulting pages” part although this is greyed out in the plugin settings.
Hello @cuffley
Yes, it is a plugin feature, we only removed the parameter from the URL and used a different method to tell the page the search term. If you don’t want this feature in your plugin copy, we can customize your plugin copy. In this case, you should request a custom coding service directly from the plugin website:
https://searchinplace.dwbooster.com/customization
Best regards.
Ok, thanks for all your help. I have tried many search plugins I think yours is far superior.
Hello @cuffley
Thank you very much for your words.
Best regards.