<?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; magazin style</title>
	<atom:link href="http://wpfunc.com/tag/magazin-style/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>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>
	</channel>
</rss>

