<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.2" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Support Forum - Topic: Add a responsive menu</title>
		<link>http://www.kriesi.at/support/topic/add-a-responsive-menu-2</link>
		<description>Support Forum - Topic: Add a responsive menu</description>
		<language>en-US</language>
		<pubDate>Thu, 20 Jun 2013 07:29:27 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.2</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://www.kriesi.at/support/search.php</link>
		</textInput>
		<atom:link href="http://www.kriesi.at/support/rss/topic/add-a-responsive-menu-2" rel="self" type="application/rss+xml" />

		<item>
			<title>Nick on "Add a responsive menu"</title>
			<link>http://www.kriesi.at/support/topic/add-a-responsive-menu-2#post-81153</link>
			<pubDate>Fri, 26 Oct 2012 10:18:40 +0000</pubDate>
			<dc:creator>Nick</dc:creator>
			<guid isPermaLink="false">81153@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;I just tried this myself  for very begining and i got the second menu on top&#60;/p&#62;
&#60;p&#62;in functions php&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;/*
 * Activate native wordpress navigation menu and register a menu location
 */
if(!function_exists(&#38;#39;avia_nav_menus&#38;#39;))
{
	function avia_nav_menus()
	{
		global $avia_config;

		add_theme_support(&#38;#39;nav_menus&#38;#39;);
		foreach($avia_config[&#38;#39;nav_menus&#38;#39;] as $key =&#38;gt; $value){ register_nav_menu($key, THEMENAME.&#38;#39; &#38;#39;.$value); }
	}

	$avia_config[&#38;#39;nav_menus&#38;#39;] = array(&#38;#39;avia&#38;#39; =&#38;gt; &#38;#39;Main Menu&#38;#39; , &#38;#39;avia2&#38;#39; =&#38;gt; &#38;#39;Socket Menu (no drowpdowns)&#38;#39;);
	avia_nav_menus(); //call the function immediatly to activate
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;in header php&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php
						/*
*   display the theme logo by checking if the default logo was overwritten in the backend.
*   the function is located at framework/php/function-set-avia-frontend-functions.php in case you need to edit the output
*/
echo avia_logo(AVIA_BASE_URL.&#38;#39;images/layout/logo.png&#38;#39;);

/*
*   display the main navigation menu
*   check if a description for submenu items was added and change the menu class accordingly
*   modify the output in your wordpress admin backend at appearance-&#38;gt;menus
*/

echo &#38;quot;&#38;lt;div class=&#38;#39;sub_menu&#38;#39; data-selectname=&#38;#39;&#38;quot;.__(&#38;#39;Select a page&#38;#39;,&#38;#39;avia_framework&#38;#39;).&#38;quot;&#38;#39;&#38;gt;&#38;quot;;
$args2 = array(&#38;#39;theme_location&#38;#39;=&#38;gt;&#38;#39;avia2&#38;#39;, &#38;#39;fallback_cb&#38;#39; =&#38;gt; &#38;#39;avia_fallback_menu&#38;#39;);
wp_nav_menu($args2);
echo &#38;quot;&#38;lt;/div&#38;gt;&#38;quot;;

echo &#38;quot;&#38;lt;div class=&#38;#39;main_menu&#38;#39; data-selectname=&#38;#39;&#38;quot;.__(&#38;#39;Select a page&#38;#39;,&#38;#39;avia_framework&#38;#39;).&#38;quot;&#38;#39;&#38;gt;&#38;quot;;
$args = array(&#38;#39;theme_location&#38;#39;=&#38;gt;&#38;#39;avia&#38;#39;, &#38;#39;fallback_cb&#38;#39; =&#38;gt; &#38;#39;avia_fallback_menu&#38;#39;);
wp_nav_menu($args);
echo &#38;quot;&#38;lt;/div&#38;gt;&#38;quot;;

?&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Then in the backend you add the menu in the second slot and call it any name you want, and it displays. Then you can style it&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;.sub_menu {
margin: 90px;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;and it will go below the main navigation menu.&#60;/p&#62;
&#60;p&#62;Thanks,&#60;/p&#62;
&#60;p&#62;Nick
&#60;/p&#62;</description>
		</item>
		<item>
			<title>nachosn69 on "Add a responsive menu"</title>
			<link>http://www.kriesi.at/support/topic/add-a-responsive-menu-2#post-80731</link>
			<pubDate>Tue, 23 Oct 2012 12:13:03 +0000</pubDate>
			<dc:creator>nachosn69</dc:creator>
			<guid isPermaLink="false">80731@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;All it´s done but seems that something still is not correct.&#60;/p&#62;
&#60;p&#62;This are my changes and code right now:&#60;/p&#62;
&#60;p&#62;header.php&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;echo &#38;quot;&#38;lt;div class=&#38;#39;main_menu&#38;#39; data-selectname=&#38;#39;&#38;quot;.__(&#38;#39;Select a page&#38;#39;,&#38;#39;avia_framework&#38;#39;).&#38;quot;&#38;#39;&#38;gt;&#38;quot;;
						$args = array(&#38;#39;theme_location&#38;#39;=&#38;gt;&#38;#39;avia&#38;#39;, &#38;#39;fallback_cb&#38;#39; =&#38;gt; &#38;#39;avia_fallback_menu&#38;#39;);
						wp_nav_menu($args);
						echo &#38;quot;&#38;lt;/div&#38;gt;&#38;quot;;
						?&#38;gt;
                        &#38;lt;?php

	echo &#38;quot;&#38;lt;div class=&#38;#39;sub_menu&#38;#39; data-selectname=&#38;#39;&#38;quot;.__(&#38;#39;Select a page&#38;#39;,&#38;#39;avia_framework&#38;#39;).&#38;quot;&#38;#39;&#38;gt;&#38;quot;;
	$args = array(&#38;#39;theme_location&#38;#39;=&#38;gt;&#38;#39;avia2&#38;#39;, &#38;#39;fallback_cb&#38;#39; =&#38;gt; &#38;#39;&#38;#39;, &#38;#39;depth&#38;#39;=&#38;gt;1);
	wp_nav_menu($args);
	echo &#38;quot;&#38;lt;/div&#38;gt;&#38;quot;;

?&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;functions.php&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;if(!function_exists(&#38;#39;avia_nav_menus&#38;#39;))
{
	function avia_nav_menus()
	{
		global $avia_config;

		add_theme_support(&#38;#39;nav_menus&#38;#39;);
		foreach($avia_config[&#38;#39;nav_menus&#38;#39;] as $key =&#38;gt; $value){ register_nav_menu($key, THEMENAME.&#38;#39; &#38;#39;.$value); }
	}

	$avia_config[&#38;#39;nav_menus&#38;#39;] = array(&#38;#39;avia&#38;#39; =&#38;gt; &#38;#39;Main Menu&#38;#39; , &#38;#39;avia2&#38;#39; =&#38;gt; &#38;#39;Socket Menu (no drowpdowns)&#38;#39;);
	avia_nav_menus(); //call the function immediatly to activate
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;avia.js&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;// improves menu for mobile devices
	jQuery(&#38;#39;.responsive .main_menu ul:eq(0)&#38;#39;).mobileMenu({
	  switchWidth: 768,                   							//width (in px to switch at)
	  topOptionText: jQuery(&#38;#39;.main_menu&#38;#39;).data(&#38;#39;selectname&#38;#39;),     	//first option text
	  indentString: &#38;#39;   &#38;#39;  							//string for indenting nested items
	});

	// improves menu for mobile devices
	jQuery(&#38;#39;.responsive .sub_menu ul:eq(0)&#38;#39;).mobileMenu({
	  switchWidth: 768,                   							//width (in px to switch at)
	  topOptionText: jQuery(&#38;#39;.sub_menu&#38;#39;).data(&#38;#39;selectname&#38;#39;),     	//first option text
	  indentString: &#38;#39;   &#38;#39;  							//string for indenting nested items
	});&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;---------&#60;/p&#62;
&#60;p&#62;As you can see the drop down menu still dont appears.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Nick on "Add a responsive menu"</title>
			<link>http://www.kriesi.at/support/topic/add-a-responsive-menu-2#post-80697</link>
			<pubDate>Tue, 23 Oct 2012 00:00:04 +0000</pubDate>
			<dc:creator>Nick</dc:creator>
			<guid isPermaLink="false">80697@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;So you want the menu you brought up from the footer (there is a piece of it still left in the footer) - About, Contacto, Prensa, Alquiler de Espacio - to be the only navigation that tablets and mobile users see, in essence the primary navigation? It may be easier to just move everything that's on top menu to the bottom one and from bottom to top one.&#60;/p&#62;
&#60;p&#62;Would you please try Dude's code again, but first remove the code below from the footer:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;div class=&#38;#39;sub_menu&#38;#39;&#38;gt;&#38;lt;/div&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;and please delete your second menu in the header and in its place past the complete menu code&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php

	echo &#38;quot;&#38;lt;div class=&#38;#39;sub_menu&#38;#39;&#38;gt;&#38;quot;;
	$args = array(&#38;#39;theme_location&#38;#39;=&#38;gt;&#38;#39;avia2&#38;#39;, &#38;#39;fallback_cb&#38;#39; =&#38;gt; &#38;#39;&#38;#39;, &#38;#39;depth&#38;#39;=&#38;gt;1);
	wp_nav_menu($args);
	echo &#38;quot;&#38;lt;/div&#38;gt;&#38;quot;;

?&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Thanks,&#60;/p&#62;
&#60;p&#62;Nick
&#60;/p&#62;</description>
		</item>
		<item>
			<title>nachosn69 on "Add a responsive menu"</title>
			<link>http://www.kriesi.at/support/topic/add-a-responsive-menu-2#post-80610</link>
			<pubDate>Mon, 22 Oct 2012 08:34:41 +0000</pubDate>
			<dc:creator>nachosn69</dc:creator>
			<guid isPermaLink="false">80610@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;I have made the changes in js/avia.js but drop down still does not appears. Any Ideas?&#60;/p&#62;
&#60;p&#62;Best,&#60;/p&#62;
&#60;p&#62;Nacho.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Dude on "Add a responsive menu"</title>
			<link>http://www.kriesi.at/support/topic/add-a-responsive-menu-2#post-80459</link>
			<pubDate>Sat, 20 Oct 2012 07:00:54 +0000</pubDate>
			<dc:creator>Dude</dc:creator>
			<guid isPermaLink="false">80459@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Try following - open up js/avia.js and replace:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;// improves menu for mobile devices
	jQuery(&#38;#39;.responsive .main_menu ul:eq(0)&#38;#39;).mobileMenu({
	  switchWidth: 768,                   							//width (in px to switch at)
	  topOptionText: jQuery(&#38;#39;.main_menu&#38;#39;).data(&#38;#39;selectname&#38;#39;),     	//first option text
	  indentString: &#38;#39;&#38;amp;nbsp;&#38;amp;nbsp;&#38;amp;nbsp;&#38;#39;  							//string for indenting nested items
	});&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;with:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;// improves menu for mobile devices
	jQuery(&#38;#39;.responsive .main_menu ul:eq(0)&#38;#39;).mobileMenu({
	  switchWidth: 768,                   							//width (in px to switch at)
	  topOptionText: jQuery(&#38;#39;.main_menu&#38;#39;).data(&#38;#39;selectname&#38;#39;),     	//first option text
	  indentString: &#38;#39;&#38;amp;nbsp;&#38;amp;nbsp;&#38;amp;nbsp;&#38;#39;  							//string for indenting nested items
	});

	// improves menu for mobile devices
	jQuery(&#38;#39;.responsive .sub_menu ul:eq(0)&#38;#39;).mobileMenu({
	  switchWidth: 768,                   							//width (in px to switch at)
	  topOptionText: jQuery(&#38;#39;.sub_menu&#38;#39;).data(&#38;#39;selectname&#38;#39;),     	//first option text
	  indentString: &#38;#39;&#38;amp;nbsp;&#38;amp;nbsp;&#38;amp;nbsp;&#38;#39;  							//string for indenting nested items
	});&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>nachosn69 on "Add a responsive menu"</title>
			<link>http://www.kriesi.at/support/topic/add-a-responsive-menu-2#post-80332</link>
			<pubDate>Fri, 19 Oct 2012 09:05:10 +0000</pubDate>
			<dc:creator>nachosn69</dc:creator>
			<guid isPermaLink="false">80332@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;I think that your not understanding me. I have the menu number 2 in this page top below the main menu:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.delimbo.com/test/&#34; rel=&#34;nofollow&#34;&#62;http://www.delimbo.com/test/&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;The problem comes when i open the website in a mobile phone or tablet. The second menu disappears. I want to be showed as the main one. with a drop down menu for mobile and tablets.&#60;/p&#62;
&#60;p&#62;Best,&#60;/p&#62;
&#60;p&#62;Nacho.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Nick on "Add a responsive menu"</title>
			<link>http://www.kriesi.at/support/topic/add-a-responsive-menu-2#post-80273</link>
			<pubDate>Thu, 18 Oct 2012 17:21:48 +0000</pubDate>
			<dc:creator>Nick</dc:creator>
			<guid isPermaLink="false">80273@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;Please go to Appearance &#38;gt; Menus in the back-end and create as many menus as you want and assign whichever on you like best as your main menu on the same page.&#60;/p&#62;
&#60;p&#62;Thanks,&#60;/p&#62;
&#60;p&#62;Nick
&#60;/p&#62;</description>
		</item>
		<item>
			<title>nachosn69 on "Add a responsive menu"</title>
			<link>http://www.kriesi.at/support/topic/add-a-responsive-menu-2#post-80106</link>
			<pubDate>Wed, 17 Oct 2012 17:06:09 +0000</pubDate>
			<dc:creator>nachosn69</dc:creator>
			<guid isPermaLink="false">80106@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hi,&#60;br /&#62;
I need two menus on the top page here: &#60;a href=&#34;http://www.delimbo.com/test/&#34; rel=&#34;nofollow&#34;&#62;http://www.delimbo.com/test/&#60;/a&#62;&#60;br /&#62;
There´s any way or possibility to make works the secondary menu as the main menu? I Mean, I need the secondary also appears as a drop down when responsive design adapts to smaller screen sizes.&#60;br /&#62;
Sorry for my poor English.... :-P&#60;br /&#62;
Best,&#60;br /&#62;
Nacho.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
