Hi. I’m using the Relevanssi search plugin and I’d like to highlight search terms inside posts after clicking on a search result.
To accomplish this, I need to tweak the search results template so permalinks are generated by a custom relevanssi function. (as described here, after the scrolling bit: https://www.relevanssi.com/knowledge-base/scroll-result-page-search-term/)
I’m having a bit of trouble getting started since GP is so modular: I copied search.php into my child theme, but it uses get_template_part( 'content', 'search' );
to generate the content so it doesn’t help. I see the relevant areas in content.php so I think I should make a content-search.php file with my changes included.
I’ll need to keep track of any changes to content.php in future GP versions. Is this the most future-proof way to do it?
Thanks -Zach