Title: Search hit highlighting &#8211; problem
Last modified: August 22, 2016

---

# Search hit highlighting – problem

 *  [m-one](https://wordpress.org/support/users/m-one/)
 * (@m-one)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/search-hit-highlighting-problem/)
 * Using Woo Canvas & child theme.
 * Excerpts appearing fine (changing the length reflected in results and Show breakdown
   of search hits in excerpt working) – but no highlighting.
 * Tried all the Search hit highlighting options but no highlights, no css when 
   selected etc.
 * Any ideas? Thanks.
 * [https://wordpress.org/plugins/relevanssi/](https://wordpress.org/plugins/relevanssi/)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Thread Starter [m-one](https://wordpress.org/support/users/m-one/)
 * (@m-one)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/search-hit-highlighting-problem/#post-5568112)
 * Canvas search.php here: [http://pastebin.com/CZh0ZpyR](http://pastebin.com/CZh0ZpyR)
 * Reverting to 2014 theme fixes so seems to be prob with Canvas “framework” but
   can see no query_posts() or new WP_Query() in template.
 *  Plugin Author [Mikko Saari](https://wordpress.org/support/users/msaari/)
 * (@msaari)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/search-hit-highlighting-problem/#post-5568239)
 * Your theme is probably stripping the highlights from the excerpts. I’ve seen 
   that happen. What’s inside this:
 * `<?php get_template_part( 'loop', 'search' ); ?>`
 *  Thread Starter [m-one](https://wordpress.org/support/users/m-one/)
 * (@m-one)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/search-hit-highlighting-problem/#post-5568257)
 * The supporting search template files:
 * [http://pastebin.com/m9DrHkfm](http://pastebin.com/m9DrHkfm)
 * [http://pastebin.com/66Wa4hft](http://pastebin.com/66Wa4hft)
 *  Plugin Author [Mikko Saari](https://wordpress.org/support/users/msaari/)
 * (@msaari)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/search-hit-highlighting-problem/#post-5568368)
 * Nothing unusual there, the theme is using `the_excerpt()` just like it should.
   Hard to say why this is happening. Perhaps a filter in functions.php?

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Search hit highlighting – problem’ is closed to new replies.

 * ![](https://ps.w.org/relevanssi/assets/icon-256x256.png?rev=3529670)
 * [Relevanssi - A Better Search](https://wordpress.org/plugins/relevanssi/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/relevanssi/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/relevanssi/)
 * [Active Topics](https://wordpress.org/support/plugin/relevanssi/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/relevanssi/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/relevanssi/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [Mikko Saari](https://wordpress.org/support/users/msaari/)
 * Last activity: [11 years, 5 months ago](https://wordpress.org/support/topic/search-hit-highlighting-problem/#post-5568368)
 * Status: not resolved