<?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; header.php</title>
	<atom:link href="http://wpfunc.com/tag/header-php/feed" rel="self" type="application/rss+xml" />
	<link>http://wpfunc.com</link>
	<description>Awesome, Quick, Simple WordPress Functions!</description>
	<lastBuildDate>Thu, 01 Dec 2011 01:17:01 +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>Dynamic Meta Description</title>
		<link>http://wpfunc.com/wordpress/dynamic-meta-description.html</link>
		<comments>http://wpfunc.com/wordpress/dynamic-meta-description.html#comments</comments>
		<pubDate>Fri, 17 Dec 2010 09:04:46 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[edit]]></category>
		<category><![CDATA[function]]></category>
		<category><![CDATA[functions.php]]></category>
		<category><![CDATA[header.php]]></category>
		<category><![CDATA[meta description]]></category>
		<category><![CDATA[meta tags]]></category>
		<category><![CDATA[theme]]></category>

		<guid isPermaLink="false">http://www.wpfunc.com/?p=465</guid>
		<description><![CDATA[WordPress using blog description with meta description. But we want to sync. with search terms and posts. We can do that without a plugin. Let&#8217;s begin.
We can make this via functions.php. If we make a function about this we can use posts excerpt with meta tag description.
Here is the code;
Make a copy of your theme&#8217;s [...]]]></description>
			<content:encoded><![CDATA[<p>WordPress using blog description with meta description. But we want to sync. with search terms and posts. We can do that without a plugin. Let&#8217;s begin.</p>
<p><span id="more-465"></span>We can make this via functions.php. If we make a function about this we can use posts excerpt with meta tag description.</p>
<h3>Here is the code;</h3>
<p>Make a copy of your <strong><span style="color: #0000ff;">theme&#8217;s</span></strong> <span style="color: #ff0000;"><strong>functions.php</strong></span> and add this code before <strong><span style="color: #ff0000;">?&gt;</span></strong></p>
<pre class="brush: php; title: ; notranslate">
function dynamic_meta_description() {
	$rawcontent = 	get_the_content();
	if(empty($rawcontent)) {
		$rawcontent = htmlentities(bloginfo('description'));
	} else {
		$rawcontent = apply_filters('the_content_rss', strip_tags($rawcontent));
		$rawcontent = preg_replace('/\[.+\]/','', $rawcontent);
		$chars = array(&quot;&quot;, &quot;\n&quot;, &quot;\r&quot;, &quot;chr(13)&quot;,  &quot;\t&quot;, &quot;&#92;&#48;&quot;, &quot;\x0B&quot;);
		$rawcontent = htmlentities(str_replace($chars, &quot; &quot;, $rawcontent));
	}
	if (strlen($rawcontent) &lt; 155) {
		echo $rawcontent;
	} else {
		$desc = substr($rawcontent,0,155);
		return $desc;
	}
}
</pre>
<p>Save functions.php and place it to your theme&#8217;s folder. In this code we use <strong><span style="color: #ff0000;">get_the_contet()</span></strong> function for call our post.<br />
After that you can use this code into your header.php for meta descripton.</p>
<pre class="brush: php; title: ; notranslate">&lt;meta name=&quot;description&quot; content=&quot;&lt;?php echo dynamic_meta_description(); ?&gt;&quot; /&gt;</pre>
<p>That&#8217;s All.</p>
]]></content:encoded>
			<wfw:commentRss>http://wpfunc.com/wordpress/dynamic-meta-description.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>New Wp Menu System on Old themes&#8230;</title>
		<link>http://wpfunc.com/wordpress/new-wp-menu-system-on-old-themes.html</link>
		<comments>http://wpfunc.com/wordpress/new-wp-menu-system-on-old-themes.html#comments</comments>
		<pubDate>Fri, 09 Jul 2010 09:05:32 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[fallback_cp]]></category>
		<category><![CDATA[functions.php]]></category>
		<category><![CDATA[header.php]]></category>
		<category><![CDATA[menu sistemi]]></category>
		<category><![CDATA[menu_order]]></category>
		<category><![CDATA[sor_column]]></category>
		<category><![CDATA[theme_location]]></category>
		<category><![CDATA[wordpress 3.0]]></category>
		<category><![CDATA[wp-admin]]></category>
		<category><![CDATA[wp_categories_menu]]></category>
		<category><![CDATA[wp_nav_menu]]></category>
		<category><![CDATA[wp_page_menu]]></category>

		<guid isPermaLink="false">http://www.wpfunc.com/?p=457</guid>
		<description><![CDATA[With this article i&#8217;ll show you how to use new wordpress menu system on old themes (before 3.0). Let&#8217;s Begin.
Open your theme&#8217;s functions.php with your favourite php editor. After that add this code into file. First code for theme menu support, second code for register a menu area for use.
After that save functions.php and upload [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">With this article i&#8217;ll show you how to use new wordpress menu system on old themes (before 3.0). Let&#8217;s Begin.<span id="more-457"></span></p>
<p style="text-align: justify;">Open your theme&#8217;s <span style="color: #ff0000;"><strong>functions.php</strong></span> with your favourite php editor. After that add this code into file. First code for theme menu support, second code for register a menu area for use.</p>
<pre class="brush: php; title: ; notranslate">// New Menu Support For theme //
add_theme_support( 'nav-menus' );</pre>
<pre class="brush: php; title: ; notranslate">register_nav_menu('main', 'Main Navigation Area');</pre>
<p style="text-align: justify;">After that save functions.php and upload the server. After that open your <span style="color: #ff0000;"><strong>header.php</strong></span> and replace all that code with your old menu code (wp_page_menu, wp_categories_menu).</p>
<pre class="brush: php; title: ; notranslate">&lt;?php wp_nav_menu( array( 'theme_location' =&gt; 'main', 'sort_column' =&gt; 'menu_order', 'fallback_cb' =&gt; 'wp_page_menu' ) ); ?&gt;</pre>
<p style="text-align: justify;">After that you can use new menu system with your old theme. And if you don&#8217;t wat to use new menu. This code add <strong>wp_page_menu</strong> for you.</p>
<p style="text-align: justify;">That&#8217;s All.</p>
]]></content:encoded>
			<wfw:commentRss>http://wpfunc.com/wordpress/new-wp-menu-system-on-old-themes.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Build a Top Sliding Login Panel</title>
		<link>http://wpfunc.com/wordpress/build-a-top-sliding-login-panel.html</link>
		<comments>http://wpfunc.com/wordpress/build-a-top-sliding-login-panel.html#comments</comments>
		<pubDate>Sat, 21 Nov 2009 16:51:48 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[header.php]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[login panel]]></category>
		<category><![CDATA[style.css]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://www.wpfunc.com/?p=303</guid>
		<description><![CDATA[This trick comes from Blog-Oh-Blog. You can create a login panel with simple jQuery and Html. We will edit header.php and style.css. Let&#8217;s begin&#8230;
Firstly, make a backup of header.php and style.css. After that you can add this codes.
In header.php;
Before &#60;/head&#62; tag;
Add this javascript code to your header.php before &#60;/head&#62; tag.
After &#60;body&#62; tag;
Add this HTML code [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">This trick comes from Blog-Oh-Blog. You can create a login panel with simple jQuery and Html. We will edit header.php and style.css. Let&#8217;s begin&#8230;<span id="more-303"></span></p>
<p style="text-align: justify;">Firstly, make a backup of header.php and style.css. After that you can add this codes.</p>
<h2>In header.php;</h2>
<h3>Before &lt;/head&gt; tag;</h3>
<p style="text-align: justify;">Add this javascript code to your header.php before<strong><span style="color: #ff9900;"> &lt;/head&gt;</span></strong> tag.</p>
<pre class="brush: jscript; title: ; notranslate">&lt;script type=&quot;text/javascript&quot; src=&quot;http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
$(document).ready(function(){
$(&quot;.btn-slide&quot;).click(function(){
$(&quot;#slide-panel&quot;).slideToggle(&quot;slow&quot;);
});
});
&lt;/script&gt;</pre>
<h3>After &lt;body&gt; tag;</h3>
<p style="text-align: justify;">Add this HTML code after <strong><span style="color: #993366;">&lt;body&gt;</span></strong> tag where you want.</p>
<pre class="brush: xml; title: ; notranslate">&lt;div id=&quot;slide-panel&quot;&gt;&lt;!--SLIDE PANEL STARTS--&gt;
&lt;?php if ( ! is_user_logged_in() ){ ?&gt;
&lt;h2&gt;Login&lt;/h2&gt;
&lt;div class=&quot;loginform&quot;&gt;
&lt;div class=&quot;formdetails&quot;&gt;
&lt;form action=&quot;&lt;?php echo get_option('home'); ?&gt;/wp-login.php&quot; method=&quot;post&quot;&gt;
&lt;label for=&quot;log&quot;&gt;Username : &lt;/label&gt;&lt;input type=&quot;text&quot; name=&quot;log&quot; id=&quot;log&quot; value=&quot;&lt;?php echo wp_specialchars(stripslashes($user_login), 1) ?&gt;&quot; size=&quot;20&quot; /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;label for=&quot;pwd&quot;&gt;Password : &lt;/label&gt;&lt;input type=&quot;password&quot; name=&quot;pwd&quot; id=&quot;pwd&quot; size=&quot;20&quot; /&gt;
&lt;input type=&quot;submit&quot; name=&quot;submit&quot; value=&quot;Login&quot; class=&quot;button&quot; /&gt;
&lt;label for=&quot;rememberme&quot;&gt;&lt;input name=&quot;rememberme&quot; id=&quot;rememberme&quot; type=&quot;checkbox&quot; checked=&quot;checked&quot; value=&quot;forever&quot; /&gt; Remember me&lt;/label&gt;&lt;input type=&quot;hidden&quot; name=&quot;redirect_to&quot; value=&quot;&lt;?php echo $_SERVER['REQUEST_URI']; ?&gt;&quot; /&gt;
&lt;/form&gt;
&lt;/div&gt;
&lt;div class=&quot;loginregister&quot;&gt;
&lt;a href=&quot;&lt;?php echo get_option('home'); ?&gt;/wp-register.php&quot;&gt;Register&lt;/a&gt; |
&lt;a href=&quot;&lt;?php echo get_option('home'); ?&gt;/wp-login.php?action=lostpassword&quot;&gt;Recover password&lt;/a&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;!--loginform ends--&gt;
&lt;?php } else { ?&gt;
&lt;div class=&quot;loginform&quot;&gt;
&lt;h2&gt;Control Panel&lt;/h2&gt;&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;&lt;?php echo get_option('home'); ?&gt;/wp-admin/&quot;&gt;Dashboard&lt;/a&gt;&lt;/li&gt; |
&lt;li&gt;&lt;a href=&quot;&lt;?php echo get_option('home'); ?&gt;/wp-admin/post-new.php&quot;&gt;Write new Post&lt;/a&gt;&lt;/li&gt; |
&lt;li&gt;&lt;a href=&quot;&lt;?php echo get_option('home'); ?&gt;/wp-admin/page-new.php&quot;&gt;Write new Page&lt;/a&gt;&lt;/li&gt; |
&lt;li&gt;&lt;a href=&quot;&lt;?php echo wp_logout_url( get_bloginfo('url') ); ?&gt;&quot; title=&quot;Logout&quot;&gt;Logout&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;
&lt;/div&gt;&lt;!--loginform ends--&gt;
&lt;?php }?&gt;
&lt;/div&gt;&lt;!--SLIDE PANEL ENDS--&gt;
&lt;div class=&quot;slide&quot;&gt;&lt;a href=&quot;#&quot; class=&quot;btn-slide&quot;&gt;&lt;?php if ( ! is_user_logged_in() ){ ?&gt;Login&lt;?php } else { ?&gt;Logout&lt;?php }?&gt;&lt;/a&gt;&lt;/div&gt;&lt;!--LOGIN BUTTON TEXT--&gt;</pre>
<p style="text-align: justify;">Save and send your <strong><span style="color: #ff0000;">header.php</span></strong> to your server.</p>
<h3>And Style&#8230;</h3>
<p style="text-align: justify;">Open your <span style="color: #ff0000;"><strong>style.css</strong></span> and add this lines to end of file.</p>
<pre class="brush: css; title: ; notranslate">* {margin:0; padding:0; outline:0;}
#slide-panel{ background-color:#000;border-bottom-style:solid;border-bottom-width:2px;display:none;height:100px;margin:auto;}
.slide {width:950px; margin:auto;}
.btn-slide:link, .btn-slide:visited{color:#fff; float:right; display:block;font-size:14px; text-transform:uppercase; font-weight:bold;height:26px; padding:3px 0 3px 0;line-height:22px;text-align:center;text-decoration:none;width:100px; background-color:#000; font-family:Arial;}
.loginform {width:950px; margin:auto; color:#999; font-family:Arial, Helvetica, sans-serif;}
.formdetails {color:#FFF; font-size:12px;padding:5px;}
.formdetails input{border:none; padding:2px 5px 2px 5px; background-color:#EFEFEF;}
.loginregister {color:#999; padding:5px;}
.loginregister a:link, .loginregister a:visited {color:#FFF; font-size:11px; text-decoration:underline;}
.loginform h2 {padding:10px 10px 10px 0; font-size:18px; font-weight:normal; text-transform:uppercase;}
.loginform ul li {display:inline;}
.loginform ul li a:link, .loginform ul li a:visited {color:#FFF; font-size:12px; text-decoration:underline;}</pre>
<p>That&#8217;s All. Look at <strong><a href="http://www.blogohblog.com/labs/sliding_login_panel.html" target="_blank">DEMO!</a></strong> and the<strong> <a href="http://www.blogohblog.com/how-to-build-a-top-sliding-login-panel/" target="_blank">original post!</a></strong></p>
<p>Have a nice day!</p>
]]></content:encoded>
			<wfw:commentRss>http://wpfunc.com/wordpress/build-a-top-sliding-login-panel.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Disable Caching!</title>
		<link>http://wpfunc.com/wordpress/disable-caching.html</link>
		<comments>http://wpfunc.com/wordpress/disable-caching.html#comments</comments>
		<pubDate>Tue, 20 Oct 2009 16:30:39 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[disable caching]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[header.php]]></category>
		<category><![CDATA[robots]]></category>
		<category><![CDATA[site]]></category>
		<category><![CDATA[Yahoo]]></category>

		<guid isPermaLink="false">http://www.wpfunc.com/?p=270</guid>
		<description><![CDATA[Search engines are cahce our/your site for search results. If you want to disable this function sor search engines (ex. Google, Yahoo) just place a meta tag to your header. Lets&#8217; begin&#8230;
Here is the code;

Just place this code to your header.php. With this code your site and posts will not cache by search engines.
]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">Search engines are cahce our/your site for search results. If you want to disable this function sor search engines (ex. Google, Yahoo) just place a meta tag to your header. Lets&#8217; begin&#8230;<span id="more-270"></span></p>
<h3>Here is the code;</h3>
<pre class="brush: xml; title: ; notranslate">&lt;meta name=&quot;robots&quot; content=&quot;noarchive&quot;&gt;</pre>
<p style="text-align: justify;">
Just place this code to your header.php. With this code your site and posts will not cache by search engines.</p>
]]></content:encoded>
			<wfw:commentRss>http://wpfunc.com/wordpress/disable-caching.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Include jQuery to your theme</title>
		<link>http://wpfunc.com/wordpress/include-jquery-to-your-theme.html</link>
		<comments>http://wpfunc.com/wordpress/include-jquery-to-your-theme.html#comments</comments>
		<pubDate>Thu, 08 Oct 2009 17:34:14 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[header.php]]></category>
		<category><![CDATA[integrate java]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jquery]]></category>

		<guid isPermaLink="false">http://www.wpfunc.com/?p=244</guid>
		<description><![CDATA[Hi again. The jQuery is the most easy javascript framework. You can integrate most of useful javascript commands and code to your site with this framework. Also you can addjQuery to your WordPress theme easily&#8230;
Here is the code;
Add this code to your header.php. Paste this code between &#60;head&#62; and &#60;/head&#62; tags.
That&#8217;s All! Have a nice [...]]]></description>
			<content:encoded><![CDATA[<p>Hi again. The jQuery is the most easy javascript framework. You can integrate most of useful javascript commands and code to your site with this framework. Also you can addjQuery to your WordPress theme easily&#8230;<span id="more-244"></span></p>
<h3 style="text-align: justify;">Here is the code;</h3>
<pre class="brush: plain; title: ; notranslate">&lt;?php wp_enqueue_script(&quot;jquery&quot;); ?&gt;</pre>
<p>Add this code to your header.php. Paste this code between <strong><em>&lt;head&gt;</em></strong> and <strong><em>&lt;/head&gt;</em></strong> tags.</p>
<p>That&#8217;s All! Have a nice day.</p>
]]></content:encoded>
			<wfw:commentRss>http://wpfunc.com/wordpress/include-jquery-to-your-theme.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Use Tabs in Your Blog!</title>
		<link>http://wpfunc.com/wordpress/use-tabs-in-your-blog.html</link>
		<comments>http://wpfunc.com/wordpress/use-tabs-in-your-blog.html#comments</comments>
		<pubDate>Wed, 30 Sep 2009 18:34:09 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[header.php]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[non-premium themes]]></category>
		<category><![CDATA[Premium themes]]></category>
		<category><![CDATA[sidebar]]></category>
		<category><![CDATA[tabs]]></category>

		<guid isPermaLink="false">http://www.wpfunc.com/wordpress/use-tabs-in-your-blog.html</guid>
		<description><![CDATA[Some Premium WordPress themes have jQuery tabs in the original. But if you have a non-premium theme you can easily apply this tabs in your theme. You integrate 1 js file and 1 css file in your theme and some code :) Let&#8217;s Begin&#8230;
Here is the code and files;
Firstly Download this file for the begining. [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">Some Premium WordPress themes have jQuery tabs in the original. But if you have a non-premium theme you can easily apply this tabs in your theme. You integrate 1 js file and 1 css file in your theme and some code :) Let&#8217;s Begin&#8230;<span id="more-233"></span></p>
<h3>Here is the code and files;</h3>
<p style="text-align: justify;">Firstly <a href="http://www.wpfunc.com/wp-content/uploads/2009/09/domtabs.zip">Download this file</a> for the begining. There are 2 css files in this zip archive. Upload these files in yout theme directory and just add these code in your themes <span style="color: #ff0000;"><strong>header.php</strong></span> above the <em><strong><span style="color: #ff0000;">&lt;/head&gt;</span></strong></em> tag;</p>
<pre class="brush: plain; title: ; notranslate">&lt;script type=&quot;text/javascript&quot; src=&quot;&lt;?php bloginfo('template_directory'); ?&gt;/domtab.js&quot;&gt;&lt;/script&gt;
&lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;&lt;?php bloginfo('template_directory'); ?&gt;/domtab.css&quot; media=&quot;screen&quot; /&gt;</pre>
<p style="text-align: justify;">After that we will make our tabs. Just copey this code and paste it into your sidebar;</p>
<pre class="brush: plain; title: ; notranslate">&lt;div class=&quot;domtab&quot;&gt;
&lt;ul class=&quot;domtabs&quot;&gt;
&lt;li&gt;&lt;a href=&quot;#t1&quot;&gt;Tab 1&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#t2&quot;&gt;Tab 2&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#t3&quot;&gt;Tab 3&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;
&lt;a name=&quot;t1&quot; id=&quot;t1&quot;&gt;&lt;/a&gt;
&lt;p&gt;Insert contents of the first tab here,
e.g. The code for a plugin.&lt;/p&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;a name=&quot;t2&quot; id=&quot;t2&quot;&gt;&lt;/a&gt;
&lt;p&gt;Insert contents of the second tab here.&lt;/p&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;a name=&quot;t3&quot; id=&quot;t3&quot;&gt;&lt;/a&gt;
&lt;p&gt;Insert contents of the third tab here.&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;</pre>
<p style="text-align: justify;">You can make changes for your interests. That&#8217;s All. Thanks to <a href="http://www.blogohblog.com/10-wordpress-hacks-to-make-your-life-even-easier/" target="_blank">Blog-oh-Blog</a> for this code.</p>
]]></content:encoded>
			<wfw:commentRss>http://wpfunc.com/wordpress/use-tabs-in-your-blog.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to make a magazin style wordpress dropdown menu?</title>
		<link>http://wpfunc.com/wordpress/how-to-make-a-magazin-style-wordpress-dropdown-menu.html</link>
		<comments>http://wpfunc.com/wordpress/how-to-make-a-magazin-style-wordpress-dropdown-menu.html#comments</comments>
		<pubDate>Fri, 25 Sep 2009 09:02:49 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[dropdown menu]]></category>
		<category><![CDATA[header.php]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[magazin style]]></category>
		<category><![CDATA[style.css]]></category>

		<guid isPermaLink="false">http://www.wpfunc.com/?p=220</guid>
		<description><![CDATA[This think and coding coming from Jean-Baptiste Jung. When i read his Ubuntu Theme Colletction  article for choose my new Ubuntu theme i saw an article title Magazin Style Dropdown menu and i clicked that link. I think you can make this easily. Smells good!
1st. Step: Changing Header.php;
Just add this code to your theme&#8217;s header.php. You [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">This think and coding coming from Jean-Baptiste Jung. When i read his Ubuntu Theme Colletction  article for choose my new Ubuntu theme i saw an article title Magazin Style Dropdown menu and i clicked that link. I think you can make this easily. Smells good!<span id="more-220"></span></p>
<h3 style="text-align: justify;">1st. Step: Changing Header.php;</h3>
<p style="text-align: justify;">Just add this code to your <strong><span style="color: #ff0000;">theme&#8217;s header.php</span></strong>. You can show your categories/sub-categories or pages/sub-pages.</p>
<pre class="brush: plain; title: ; notranslate">&lt;ul id=&quot;nav2&quot; class=&quot;clearfloat&quot;&gt;
&lt;li&gt;&lt;a href=&quot;&lt;?php echo get_option('home'); ?&gt;/&quot; class=&quot;on&quot;&gt;Home&lt;/a&gt;&lt;/li&gt;
 	&lt;?php wp_list_categories('orderby=name&amp;exlude=181&amp;title_li=');
 	$this_category = get_category($cat);
 	if (get_category_children($this_category-&gt;cat_ID) != &quot;&quot;) {
 		echo &quot;&lt;ul&gt;&quot;;
wp_list_categories('orderby=id&amp;show_count=0&amp;title_li=&amp;use_desc_for_title=1&amp;child_of='.$this_category-&gt;cat_ID);
 		echo &quot;&lt;/ul&gt;&quot;;
 	}
?&gt;
&lt;/ul&gt;
</pre>
<h3 style="text-align: justify;">2nd. Step: The CSS;</h3>
<p style="text-align: justify;">You will change your <strong><span style="color: #ff0000;">theme&#8217;s style.css</span> </strong>file for this menu&#8217;s style. Just copy this codes below.</p>
<pre class="brush: css; title: ; notranslate">#nav2{
        background-color: #202020;
        display: block;
        font-size:1.1em;
        height:50px;
        width:100%;
}

#nav2, #nav2 ul {
line-height: 1;
list-style: none;
}

#nav2 a ,#nav2 a:hover{
border:none;
display: block;
text-decoration: none;
}

#nav2 li {
float: left;
list-style:none;
}

#nav2 a,#nav2 a:visited {
color:#109dd0;
display:block;
font-weight:bold;
padding:6px 12px;
}

#nav2 a:hover, #nav2 a:active {
color:#fff;
text-decoration:none
}

#nav2 li ul {
border-bottom: 1px solid #a9a9a9;
height: auto;
left: -999em;
position: absolute;
width: 900px;
z-index:999;
}

#nav2 li li {
width: auto;
}

#nav2 li li a,#nav2 li li a:visited {
        color:#109dd0;
font-weight:normal;
font-size:0.9em;
}

#nav2 li li a:hover,#nav2 li li a:active {
color:#fff;
}

#nav2 li:hover ul, #nav2 li li:hover ul, #nav2 li li li:hover ul, #nav2 li.sfhover ul, #nav2 li li.sfhover ul, #nav2 li li li.sfhover ul {
left: 30px;
}
</pre>
<p style="text-align: justify;">If you <strong><span style="color: #ff0000;">ensure</span></strong> about <strong><span style="color: #ff0000;">IE6</span></strong> add this java code below;</p>
<pre class="brush: jscript; title: ; notranslate">&lt;!--//--&gt;&lt;![CDATA[//&gt;&lt;!--

sfHover = function() {
var sfEls = document.getElementById(&quot;nav2&quot;).getElementsByTagName(&quot;LI&quot;);
for (var i=0; i&lt;sfEls.length; i++) {
sfEls[i].onmouseover=function() {
this.className+=&quot; sfhover&quot;;
}
sfEls[i].onmouseout=function() {
this.className=this.className.replace(new RegExp(&quot; sfhover\\b&quot;), &quot;&quot;);
}
}
}
if (window.attachEvent) window.attachEvent(&quot;onload&quot;, sfHover);

//--&gt;&lt;!]]&gt;
</pre>
<p style="text-align: justify;">That&#8217;s All. The Original post is <a href="http://www.catswhocode.com/blog/wordpress-magazine-style-horizontal-dropdown-menu" target="_blank">WordPress: “Magazine style” Horizontal dropdown menu</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://wpfunc.com/wordpress/how-to-make-a-magazin-style-wordpress-dropdown-menu.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Highlight the Searched Text!</title>
		<link>http://wpfunc.com/wordpress/highlight-the-searched-text.html</link>
		<comments>http://wpfunc.com/wordpress/highlight-the-searched-text.html#comments</comments>
		<pubDate>Tue, 22 Sep 2009 19:59:47 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[functions.php]]></category>
		<category><![CDATA[header.php]]></category>
		<category><![CDATA[highlight]]></category>
		<category><![CDATA[highlight searched text]]></category>
		<category><![CDATA[search term]]></category>
		<category><![CDATA[search terms]]></category>

		<guid isPermaLink="false">http://www.wpfunc.com/?p=202</guid>
		<description><![CDATA[Some themes have a highlighted search page, some themes don&#8217;t have this page too. But i will give some code to you. With this code you can highlight the searched text on your theme. This function may help your users when they search any important things. Lets Begin..

Here is the code;
First make a backup functions.php [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">Some themes have a highlighted search page, some themes don&#8217;t have this page too. But i will give some code to you. With this code you can highlight the searched text on your theme. This function may help your users when they search any important things. Lets Begin..<span id="more-202"></span></p>
<p style="text-align: justify;"><span class="attention">We will change our theme&#8217;s <strong>function.php</strong> and <strong>header.php</strong>. If you don&#8217;t know about WordPress coding or PHP please don&#8217;t touch this files. If you wanna help send me e-mail about this function.</span></p>
<h3 style="text-align: justify;">Here is the code;</h3>
<p style="text-align: justify;">First make a backup functions.php and header.php (These files under the your themes path [<strong>wp-content/theme/your-theme</strong>]). After backup, you can change this files and you can send them to your server.</p>
<p style="text-align: justify;">Insert this code into <strong>theme&#8217;s Functions.php</strong>:</p>
<pre class="brush: plain; title: ; notranslate">function hls_set_query() {
  $query  = attribute_escape(get_search_query());

  if(strlen($query) &gt; 0){
    echo '
      &lt;script type=&quot;text/javascript&quot;&gt;
        var hls_query  = &quot;'.$query.'&quot;;
      &lt;/script&gt;
    ';
  }
}

function hls_init_jquery() {
  wp_enqueue_script('jquery');
}

add_action('init', 'hls_init_jquery');
add_action('wp_print_scripts', 'hls_set_query');
</pre>
<p style="text-align: justify;">And after that, Open your <strong>theme&#8217;s header.php</strong> and paste this code before <strong>&lt;/head&gt;</strong> tag.</p>
<pre class="brush: plain; title: ; notranslate">&lt;style type=&quot;text/css&quot; media=&quot;screen&quot;&gt;
    .hls { background: #D3E18A; }
  &lt;/style&gt;
  &lt;script type=&quot;text/javascript&quot;&gt;
  jQuery.fn.extend({
    highlight: function(search, insensitive, hls_class){
      var regex = new RegExp(&quot;(&lt;[^&gt;]*&gt;)|(\\b&quot;+ search.replace(/([-.*+?^${}()|[\]\/\\])/g,&quot;\\$1&quot;) +&quot;)&quot;, insensitive ? &quot;ig&quot; : &quot;g&quot;);
      return this.html(this.html().replace(regex, function(a, b, c){
        return (a.charAt(0) == &quot;&lt;&quot;) ? a : &quot;&lt;strong class=\&quot;&quot;+ hls_class +&quot;\&quot;&gt;&quot; + c + &quot;&lt;/strong&gt;&quot;;
      }));
    }
  });
  jQuery(document).ready(function($){
    if(typeof(hls_query) != 'undefined'){
      $(&quot;#post-area&quot;).highlight(hls_query, 1, &quot;hls&quot;);
    }
  });
  &lt;/script&gt;
</pre>
<p style="text-align: justify;">After that you can send files to your server. When you search you can see searched texts are highlighted!</p>
]]></content:encoded>
			<wfw:commentRss>http://wpfunc.com/wordpress/highlight-the-searched-text.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Make Your RSS Feed Link Auto Discoverable!</title>
		<link>http://wpfunc.com/wordpress/make-your-rss-feed-link-auto-discoverable.html</link>
		<comments>http://wpfunc.com/wordpress/make-your-rss-feed-link-auto-discoverable.html#comments</comments>
		<pubDate>Tue, 22 Sep 2009 00:27:47 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[comments]]></category>
		<category><![CDATA[feed]]></category>
		<category><![CDATA[header.php]]></category>
		<category><![CDATA[RSS]]></category>
		<category><![CDATA[theme]]></category>

		<guid isPermaLink="false">http://www.wpfunc.com/?p=191</guid>
		<description><![CDATA[Some Web Browsers ( for ex. IE,Firefox,Opera) can auto discover RSS Links which are optimized. So you can use this option for your website. And users can submit your RSS feeds easily. You have to change your theme&#8217;s header.php and paste this two codes to into the file.
Firstly you should make a backup of header.php [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">Some Web Browsers ( for ex. IE,Firefox,Opera) can auto discover RSS Links which are optimized. So you can use this option for your website. And users can submit your RSS feeds easily. You have to change your theme&#8217;s header.php and paste this two codes to into the file.<span id="more-191"></span></p>
<p style="text-align: justify;">Firstly you should make a backup of header.php It is in your theme&#8217;s folder. After backup, you can change this file.</p>
<h3>Here is the code;</h3>
<pre class="brush: plain; title: ; notranslate">&lt;link rel=&quot;alternate&quot; type=&quot;application/rss+xml&quot; title=&quot;&lt;?php bloginfo('name'); ?&gt; RSS Feed&quot; href=&quot;&lt;?php bloginfo('rss2_url'); ?&gt;&quot; /&gt;
</pre>
<p> </p>
<pre class="brush: plain; title: ; notranslate">&lt;link rel=&quot;alternate&quot; type=&quot;application/rss+xml&quot; title=&quot;&lt;?php bloginfo('name'); ?&gt; Comments RSS Feed&quot; href=&quot;&lt;?php bloginfo('comments_rss2_url'); ?&gt;&quot; /&gt;</pre>
<p style="text-align: justify;">You can paste this two code to header.php. If your theme have first code you can just use second code. After that save your header.php and send it to your server.</p>
<p style="text-align: justify;">If you use IE8 you can see RSS image turn to orange and if you use Firefox you can see adding a RSS button to your address bar. When you click to this button you can see there are 2 RSS feed link into it.</p>
<p style="text-align: justify;">That&#8217;s All. Have a nice day.</p>
]]></content:encoded>
			<wfw:commentRss>http://wpfunc.com/wordpress/make-your-rss-feed-link-auto-discoverable.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

