Jump to content
Sign in to follow this  
kkjaerbye

Highlight search result words

Recommended Posts

kkjaerbye

Hi, Can anyone tell me how to highlight my search results with a yellow background? I've tried all kinds of different plugins but they removes the links from my search result page when adding the highlight. It must be possible to add some kind of marking or highlighting to the search results without changing the search pages outcome. Can anyone help me?

Share this post


Link to post
Share on other sites
Rob
You could try adding this to Custom Code: strong.search-excerpt { background: yellow; } Read the following for more information. http://yoast.com/wordpress-search/

Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites
kkjaerbye
Thanks. But I've tried to follow that tutorial and the problem is that if I activate the "Scott Yang's Search Excerpt plugin" the search results become un-clickable (they are all links to documents why they should be directly accesible from the search results page. It doesn't work for me to go through the title via the search result page and then find the link.

Share this post


Link to post
Share on other sites
Kate
Did you check out other plugins at the WP repository? Here's another: http://wordpress.org/extend/plugins/highlight-search-terms/ Also, check out this article (as an alternative): http://www.wpbeginner.com/wp-tutorials/how-to-highlight-the-search-terms-in-results-in-wordpress/

Share this post


Link to post
Share on other sites
kkjaerbye
Wuuh, the plugin did the trick. Thank you, Kate! :-)

Share this post


Link to post
Share on other sites
Rob
If this issue is resolved, may I close this discussion?

Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×