There’s no single answer to this; it depends on your theme. The file search.php in your theme is the best place to start. Another common place is template-parts/content-search.php.
I have 2 sites and found the code in 2 different files: /template-parts/content-excerpt.php and /inc/structure/content-extensions.php
It would be nice if you put the default code in the next version.
-
This reply was modified 3 years, 3 months ago by
steve92.
That is, unfortunately, impossible: Relevanssi cannot modify your theme files. In an earlier version, using a separate function wasn’t necessary and the highlights were added automatically, but that doesn’t work: the_title() is used outside post titles, and the highlights would appear to menu items, sidebars and other places where they don’t belong to.