<?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"

			>

	<channel>

		<title>Mobile Menu Auto Collapsing &#8211; Themeco Community</title>
		<atom:link href="https://theme.co/archive/forums/topic/mobile-menu-auto-collapsing/feed/" rel="self" type="application/rss+xml" />
		<link>https://theme.co/archive/forums/topic/mobile-menu-auto-collapsing/feed/</link>
		<description></description>
		<lastBuildDate>Wed, 24 Dec 2025 03:23:13 +0000</lastBuildDate>
		<generator>https://bbpress.org/?v=2.6.14</generator>
		<language>en-US</language>

		
														
					
				<item>
					<guid>https://theme.co/archive/forums/topic/mobile-menu-auto-collapsing/#post-111211</guid>
					<title><![CDATA[Mobile Menu Auto Collapsing]]></title>
					<link>https://theme.co/archive/forums/topic/mobile-menu-auto-collapsing/#post-111211</link>
					<pubDate>Wed, 24 Sep 2014 07:44:33 +0000</pubDate>
					<dc:creator>axeninja10</dc:creator>

					<description>
						<![CDATA[
						<p>Hi,</p>
<p>When I click on the menu bar button of my site from a mobile device, it opens up and quickly auto collapses thereafter. I am unable to use the menu bar to access other pages of my site because of this.</p>
<p>How do I fix this?</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/mobile-menu-auto-collapsing/#post-111213</guid>
					<title><![CDATA[Reply To: Mobile Menu Auto Collapsing]]></title>
					<link>https://theme.co/archive/forums/topic/mobile-menu-auto-collapsing/#post-111213</link>
					<pubDate>Wed, 24 Sep 2014 07:46:07 +0000</pubDate>
					<dc:creator>axeninja10</dc:creator>

					<description>
						<![CDATA[
						This reply has been marked as private.						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/mobile-menu-auto-collapsing/#post-111214</guid>
					<title><![CDATA[Reply To: Mobile Menu Auto Collapsing]]></title>
					<link>https://theme.co/archive/forums/topic/mobile-menu-auto-collapsing/#post-111214</link>
					<pubDate>Wed, 24 Sep 2014 07:46:55 +0000</pubDate>
					<dc:creator>u k</dc:creator>

					<description>
						<![CDATA[
						<p>Same problem here.<br />
Chrome on Android.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/mobile-menu-auto-collapsing/#post-111217</guid>
					<title><![CDATA[Reply To: Mobile Menu Auto Collapsing]]></title>
					<link>https://theme.co/archive/forums/topic/mobile-menu-auto-collapsing/#post-111217</link>
					<pubDate>Wed, 24 Sep 2014 07:50:10 +0000</pubDate>
					<dc:creator>axeninja10</dc:creator>

					<description>
						<![CDATA[
						<p>Just found this thread. </p>
<p><a href="http://theme.co/x/member/forums/topic/mobile-nav-disappearing/" rel="nofollow">http://theme.co/x/member/forums/topic/mobile-nav-disappearing/</a></p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/mobile-menu-auto-collapsing/#post-111222</guid>
					<title><![CDATA[Reply To: Mobile Menu Auto Collapsing]]></title>
					<link>https://theme.co/archive/forums/topic/mobile-menu-auto-collapsing/#post-111222</link>
					<pubDate>Wed, 24 Sep 2014 07:52:52 +0000</pubDate>
					<dc:creator>axeninja10</dc:creator>

					<description>
						<![CDATA[
						<p>update theme and plugins &#8230; and see how it goes.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/mobile-menu-auto-collapsing/#post-111227</guid>
					<title><![CDATA[Reply To: Mobile Menu Auto Collapsing]]></title>
					<link>https://theme.co/archive/forums/topic/mobile-menu-auto-collapsing/#post-111227</link>
					<pubDate>Wed, 24 Sep 2014 08:02:02 +0000</pubDate>
					<dc:creator>u k</dc:creator>

					<description>
						<![CDATA[
						<p>Update fixed it.<br />
Thanks.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/mobile-menu-auto-collapsing/#post-111240</guid>
					<title><![CDATA[Reply To: Mobile Menu Auto Collapsing]]></title>
					<link>https://theme.co/archive/forums/topic/mobile-menu-auto-collapsing/#post-111240</link>
					<pubDate>Wed, 24 Sep 2014 08:23:57 +0000</pubDate>
					<dc:creator>Christian</dc:creator>

					<description>
						<![CDATA[
						<p>You&#8217;re welcome UK.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/mobile-menu-auto-collapsing/#post-111257</guid>
					<title><![CDATA[Reply To: Mobile Menu Auto Collapsing]]></title>
					<link>https://theme.co/archive/forums/topic/mobile-menu-auto-collapsing/#post-111257</link>
					<pubDate>Wed, 24 Sep 2014 08:48:54 +0000</pubDate>
					<dc:creator>axeninja10</dc:creator>

					<description>
						<![CDATA[
						<p>Hi, I updated the theme and plugins and now the auto collapse problem is fixed.</p>
<p>But I have another issue, which is that: when I click on the menu from a mobile device, the main menu expands; but all the submenus are expanded by default as well. I am planning to add 20-25 pages to the sub menus, and I do not want them all expanded when I click on the main menu. Because it will cause my entire mobile screen to be covered with submenus.</p>
<p>How do I fix this?</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/mobile-menu-auto-collapsing/#post-111362</guid>
					<title><![CDATA[Reply To: Mobile Menu Auto Collapsing]]></title>
					<link>https://theme.co/archive/forums/topic/mobile-menu-auto-collapsing/#post-111362</link>
					<pubDate>Wed, 24 Sep 2014 11:59:34 +0000</pubDate>
					<dc:creator>Cousett</dc:creator>

					<description>
						<![CDATA[
						<p>Could you try this by adding at your customizer’s custom javascript?</p>
<pre><code>var menu_breakpoint = 979;
jQuery(function($){

		$(&#039;.s-mobile-collapse &gt; a&#039;).click(function(e){
			var current_width = $(window).width();
			if(current_width &gt; menu_breakpoint)	return true;
			else {
				e.preventDefault();
				$(&#039;ul.sub-menu&#039;, $(this).parent() ).each(function(){
					if( $(this).hasClass(&#039;mobile-collapsed&#039;) ) $(this).removeClass(&#039;mobile-collapsed&#039;);
					else $(this).addClass(&#039;mobile-collapsed&#039;);
				});
			}
		});

		$(window).resize(function(){
			toggle_mobile_menu_visibility($);
		});

		toggle_mobile_menu_visibility($);
});

function toggle_mobile_menu_visibility($) {
			var current_width = $(window).width();
			if (current_width &gt; menu_breakpoint) {
				$(&#039;.s-mobile-collapse &gt; ul.sub-menu&#039;).removeClass(&#039;mobile-collapsed&#039;);
				$(&#039;#menu-main&#039;).addClass(&#039;sf-menu&#039;);
			} 
			else {
				$(&#039;.s-mobile-collapse &gt; ul.sub-menu&#039;).addClass(&#039;mobile-collapsed&#039;);
				$(&#039;#menu-main&#039;).removeClass(&#039;sf-menu&#039;);
			}
}</code></pre>
<p>Then add this css at your customizer’s custom css.</p>
<pre><code>.sf-menu ul.mobile-collapsed {
   display: none !important;
   visibility: hidden !important;
}</code></pre>
<p>Then add s-mobile-collapse to each of your parent menu’s class for all level.</p>
<p><img decoding="async" src="http://s3.amazonaws.com/awesome_screenshot/5073615?AWSAccessKeyId=0R7FMW7AXRVCYMAPTPR2&amp;Expires=1411560000&amp;Signature=JSHAsY5FLeVHddWpn8IfAV1B9Ig%3D" alt="" /></p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/mobile-menu-auto-collapsing/#post-112100</guid>
					<title><![CDATA[Reply To: Mobile Menu Auto Collapsing]]></title>
					<link>https://theme.co/archive/forums/topic/mobile-menu-auto-collapsing/#post-112100</link>
					<pubDate>Thu, 25 Sep 2014 09:44:21 +0000</pubDate>
					<dc:creator>Gartenfrosch</dc:creator>

					<description>
						<![CDATA[
						<p>I have this problem also.<br />
Please can you tell me exactly where do enter &#8220;s-mobile-collapse&#8221; ? On the page, customizer &#8230;?</p>
<p>Thanks for your help</p>
						]]>
					</description>

					
					
				</item>

					
		
	</channel>
	</rss>

