<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>WpFunc &#187; color</title>
	<atom:link href="http://wpfunc.com/tag/color/feed" rel="self" type="application/rss+xml" />
	<link>http://wpfunc.com</link>
	<description>Awesome, Quick, Simple WordPress Functions!</description>
	<lastBuildDate>Sun, 06 May 2012 02:21:37 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>How to Highlight Searched Text In Results</title>
		<link>http://wpfunc.com/wordpress/how-to-highlight-searched-text-in-results.html</link>
		<comments>http://wpfunc.com/wordpress/how-to-highlight-searched-text-in-results.html#comments</comments>
		<pubDate>Tue, 21 Jul 2009 12:00:43 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[color]]></category>
		<category><![CDATA[highlight]]></category>
		<category><![CDATA[search]]></category>
		<category><![CDATA[searched text]]></category>

		<guid isPermaLink="false">http://www.wpfunc.com/?p=76</guid>
		<description><![CDATA[You can highlight searched text in search results. WordPress search system is powerfull but some things not acceptable for me :) i searched on internet and found this code for theme developers. You can add this special code to your theme. You need to change serach.php and your style.css.First open your search.php with your favourite [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">You can highlight searched text in search results. WordPress search system is powerfull but some things not acceptable for me :) i searched on internet and found this code for theme developers. You can add this special code to your theme. You need to change serach.php and your style.css.<span id="more-76"></span>First open your search.php with your favourite php editor;</p>
<p>Find the_title() function and replace with</p>
<pre class="brush: plain; title: ; notranslate">echo $title;</pre>
<p>After than add this code to before modified line</p>
<pre class="brush: plain; title: ; notranslate">&lt;?php
 $title  = get_the_title();
 $keys= explode(&quot; &quot;,$s);
 $title  = preg_replace('/('.implode('|', $keys) .')/iu',
 '&lt;strong class=&quot;search-excerpt&quot;&gt;\0&lt;/strong&gt;',  $title);
?&gt;</pre>
<p>And Last Step :)</p>
<p>Add this line to your style.css</p>
<pre class="brush: plain; title: ; notranslate">strong.search-excerpt { background: yellow; }</pre>
<p>You can change &#8216;yellow&#8217; with a color code or color name.</p>
<p>That&#8217;s All! Have a nice day!</p>
]]></content:encoded>
			<wfw:commentRss>http://wpfunc.com/wordpress/how-to-highlight-searched-text-in-results.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

