<?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>Longhouses &#187; navigation</title>
	<atom:link href="http://www.longhouses.nl/tag/navigation/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.longhouses.nl</link>
	<description>creëert business</description>
	<lastBuildDate>Mon, 10 Feb 2014 12:13:27 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.2.38</generator>
	<item>
		<title>Navigation settings</title>
		<link>http://www.longhouses.nl/navigation-settings-2/</link>
		<comments>http://www.longhouses.nl/navigation-settings-2/#comments</comments>
		<pubDate>Thu, 12 Jul 2012 13:39:30 +0000</pubDate>
		<dc:creator><![CDATA[webmaster]]></dc:creator>
				<category><![CDATA[Theme back-end]]></category>
		<category><![CDATA[back-end]]></category>
		<category><![CDATA[menus]]></category>
		<category><![CDATA[navigation]]></category>
		<category><![CDATA[settings]]></category>
		<category><![CDATA[theme]]></category>

		<guid isPermaLink="false">http://www.longhouses.nl/?p=401</guid>
		<description><![CDATA[GavernWP gives a possibility of advanced menu managing on a website. There is a list of menus available in a theme in a configuration file &#8211; menus.json. These menus are displayed in a Navigation tab: There are a few options available for each menu available on a website. Website&#8217;s main menu has more options than [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>GavernWP gives a possibility of advanced menu managing on a website. There is a list of menus available in a theme in a configuration file &#8211; <strong>menus.json</strong>. These menus are displayed in a <strong>Navigation</strong> tab:</p>
<p><a href="http://www.longhouses.nl/wp-content/uploads/2012/07/MeetGavernWP-‹-Meet-Gavern-WP-—-WordPress-15.jpg"><img class="aligncenter size-full wp-image-709" title="Nav menu" src="http://www.longhouses.nl/wp-content/uploads/2012/07/MeetGavernWP-‹-Meet-Gavern-WP-—-WordPress-15.jpg" alt="" width="548" height="539" /></a></p>
<p>There are a few options available for each menu available on a website. Website&#8217;s main menu has more options than a menu placed e.g. in a page&#8217;s footer.</p>
<p>The difference is that a main menu has additional options connected with animation:</p>
<p><a href="http://www.longhouses.nl/wp-content/uploads/2012/07/MeetGavernWP-‹-Meet-Gavern-WP-—-WordPress-16.jpg"><img class="aligncenter size-full wp-image-710" title="Nav menu options" src="http://www.longhouses.nl/wp-content/uploads/2012/07/MeetGavernWP-‹-Meet-Gavern-WP-—-WordPress-16.jpg" alt="" width="537" height="99" /></a></p>
<p>These options allow to specify the type and speed of animation of a submenu.</p>
<p>Additionally, all menu types have the two options:</p>
<ul>
<li>an option specifying whether a menu given was switched on &#8211; a menu given can be switched on only on a particular subpages thanks to a <strong>Conditional rule</strong> option &#8211; then, you have to insert a rule from  <a href="http://codex.wordpress.org/Conditional_Tags">Conditional Tags</a> and logic operators of a PHP language in  a Conditional rule field, e.g. a rule displaying a menu on the homepage and in a category called &#8220;Meet GavernWP&#8221; will have the following form:  <pre class="gk-code" data-style="style1"><code>is_homepage() || is_category('Meet GavernWP')</code></pre></li>
<li>an option specifying menu depth i.e. a maximal nesting level for all menu positions displayed. If e.g. you want to skip the second menu level and display menu positions which are on the first menu level, you have to set this option to <strong>1</strong>. Of course <strong>All levels</strong> value will cause displaying all menu postions available for a menu given.</li>
</ul>
<p>You have to remember that adding a menu, except adding an appropriate entry in an configuration file <strong>menus.json</strong>, also requires creating appropriate code in a theme.</p>
<p>This code uses a standard <a href="http://codex.wordpress.org/Function_Reference/wp_nav_menu">wp_nav_menu</a> function but you have to remember about three crucial things:</p>
<ul>
<li>code of <strong>wp_nav_menu</strong> function has to be placed inside IF condition in a form:<strong></strong> <pre class="gk-code" data-style="style1"><code>if(gk_show_menu('MENU_NAME')) {</code></pre> where <strong>MENU_NAME</strong> is a menu name, e.g. <strong>mainmenu</strong><strong></strong>. Thanks to it, there will be a functionality which allows to display a menu only on subpages chosen.</li>
<li>in the case of main menu, it is very useful to create a duplicate in a mobile version so as while displaying a website on mobile devices, a menu will be adjusted to mobile devices.</li>
<li>in the case of a main menu, you have to use a special class derived from <strong>Walker</strong>: <strong>GKMenuWalker</strong> class; however, for a mobile menu, you have to use <strong>GKMenuWalkerMobile</strong> class. Thanks to it, appropriate menu structure will be generated.</li>
</ul>
<p>CSS code connected with a menu is in <strong>css/wp.css</strong> and <strong>css/mobile.css</strong> files.</p>
<p>Scripts creating main menu animations are in <strong>js/gk.menu.js</strong> file.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.longhouses.nl/navigation-settings-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
