<?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 SubMenus are all expanded By default &#8211; Themeco Community</title>
		<atom:link href="https://theme.co/archive/forums/topic/mobile-submenus-are-all-expanded-by-default/feed/" rel="self" type="application/rss+xml" />
		<link>https://theme.co/archive/forums/topic/mobile-submenus-are-all-expanded-by-default/feed/</link>
		<description></description>
		<lastBuildDate>Tue, 21 Oct 2025 13:18:31 +0000</lastBuildDate>
		<generator>https://bbpress.org/?v=2.6.14</generator>
		<language>en-US</language>

		
														
					
				<item>
					<guid>https://theme.co/archive/forums/topic/mobile-submenus-are-all-expanded-by-default/#post-111275</guid>
					<title><![CDATA[Mobile SubMenus are all expanded By default]]></title>
					<link>https://theme.co/archive/forums/topic/mobile-submenus-are-all-expanded-by-default/#post-111275</link>
					<pubDate>Wed, 24 Sep 2014 09:29:59 +0000</pubDate>
					<dc:creator>axeninja10</dc:creator>

					<description>
						<![CDATA[
						<p>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 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-submenus-are-all-expanded-by-default/#post-111377</guid>
					<title><![CDATA[Reply To: Mobile SubMenus are all expanded By default]]></title>
					<link>https://theme.co/archive/forums/topic/mobile-submenus-are-all-expanded-by-default/#post-111377</link>
					<pubDate>Wed, 24 Sep 2014 12:33:07 +0000</pubDate>
					<dc:creator>Mrinal</dc:creator>

					<description>
						<![CDATA[
						<p>Hi There, </p>
<p>Thanks for writing in! </p>
<p>To assist you with this issue, we&#8217;ll first need you to provide us with your URL as stated on the forum entrance page. This is to ensure that we can provide you with a tailored answer to your situation. Once you have provided us with your URL, we will be happy to assist you with everything.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/mobile-submenus-are-all-expanded-by-default/#post-111519</guid>
					<title><![CDATA[Reply To: Mobile SubMenus are all expanded By default]]></title>
					<link>https://theme.co/archive/forums/topic/mobile-submenus-are-all-expanded-by-default/#post-111519</link>
					<pubDate>Wed, 24 Sep 2014 15:25:16 +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-submenus-are-all-expanded-by-default/#post-111549</guid>
					<title><![CDATA[Reply To: Mobile SubMenus are all expanded By default]]></title>
					<link>https://theme.co/archive/forums/topic/mobile-submenus-are-all-expanded-by-default/#post-111549</link>
					<pubDate>Wed, 24 Sep 2014 16:00:32 +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>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/mobile-submenus-are-all-expanded-by-default/#post-112876</guid>
					<title><![CDATA[Reply To: Mobile SubMenus are all expanded By default]]></title>
					<link>https://theme.co/archive/forums/topic/mobile-submenus-are-all-expanded-by-default/#post-112876</link>
					<pubDate>Fri, 26 Sep 2014 04:48:06 +0000</pubDate>
					<dc:creator>Louise C</dc:creator>

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

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/mobile-submenus-are-all-expanded-by-default/#post-113015</guid>
					<title><![CDATA[Reply To: Mobile SubMenus are all expanded By default]]></title>
					<link>https://theme.co/archive/forums/topic/mobile-submenus-are-all-expanded-by-default/#post-113015</link>
					<pubDate>Fri, 26 Sep 2014 11:13:19 +0000</pubDate>
					<dc:creator>Paul R</dc:creator>

					<description>
						<![CDATA[
						<p>Hi Louise,</p>
<p>Thanks for the login details.</p>
<p>Can you try the code below.</p>
<p>You can add this under <strong>Custom &gt; CSS</strong> in the <strong>Customizer</strong>.</p>
<pre><code>
@media (max-width: 979px){
ul.sub-menu {
display:none !important; 
visibility:hidden !important;
}
}
</code></pre>
<p>Best Regards</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/mobile-submenus-are-all-expanded-by-default/#post-114339</guid>
					<title><![CDATA[Reply To: Mobile SubMenus are all expanded By default]]></title>
					<link>https://theme.co/archive/forums/topic/mobile-submenus-are-all-expanded-by-default/#post-114339</link>
					<pubDate>Mon, 29 Sep 2014 01:23:38 +0000</pubDate>
					<dc:creator>Louise C</dc:creator>

					<description>
						<![CDATA[
						<p>Thanks, that worked to some extent &#8211; it collapses the mobile menu to parent items only but it doesn&#8217;t allow the parent items to expand on mobile.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/mobile-submenus-are-all-expanded-by-default/#post-114530</guid>
					<title><![CDATA[Reply To: Mobile SubMenus are all expanded By default]]></title>
					<link>https://theme.co/archive/forums/topic/mobile-submenus-are-all-expanded-by-default/#post-114530</link>
					<pubDate>Mon, 29 Sep 2014 08:48:34 +0000</pubDate>
					<dc:creator>Paul R</dc:creator>

					<description>
						<![CDATA[
						<p>Hi Louise,</p>
<p>Sorry about that.</p>
<p>Please add the code below.</p>
<pre><code>
@media (max-width: 979px){
ul.sub-menu.mobile-collapsed {
    display:block !important; 
    visibility:visible !important;
}
}
</code></pre>
<p>Best Regards</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/mobile-submenus-are-all-expanded-by-default/#post-115156</guid>
					<title><![CDATA[Reply To: Mobile SubMenus are all expanded By default]]></title>
					<link>https://theme.co/archive/forums/topic/mobile-submenus-are-all-expanded-by-default/#post-115156</link>
					<pubDate>Mon, 29 Sep 2014 23:20:51 +0000</pubDate>
					<dc:creator>Louise C</dc:creator>

					<description>
						<![CDATA[
						<p>Below is my css &#8211; adding the above code made the whole menu expand again on mobile view:</p>
<pre><code>*/Collapse menu on mobile*/
.sf-menu ul.mobile-collapsed {
   display: none !important;
   visibility: none !important;
}

@media (max-width: 979px){
ul.sub-menu {
display:none !important; 
visibility:hidden !important;
}
}

@media (max-width: 979px){
ul.sub-menu.mobile-collapsed {
    display:block !important; 
    visibility:visible !important;
}
}</code></pre>
<p>I&#8217;ve played around with different configurations, but I can&#8217;t seem to make it work.</p>
<p>Cheers,<br />
Louise</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/mobile-submenus-are-all-expanded-by-default/#post-115352</guid>
					<title><![CDATA[Reply To: Mobile SubMenus are all expanded By default]]></title>
					<link>https://theme.co/archive/forums/topic/mobile-submenus-are-all-expanded-by-default/#post-115352</link>
					<pubDate>Tue, 30 Sep 2014 08:26:59 +0000</pubDate>
					<dc:creator>Paul R</dc:creator>

					<description>
						<![CDATA[
						<p>Hi Louise,</p>
<p>Sorry it should be the other way around.</p>
<pre><code>
@media (max-width: 979px){
ul.sub-menu {
display:block !important; 
visibility:visible !important;
}
}

@media (max-width: 979px){
ul.sub-menu.mobile-collapsed {
    display:none !important; 
    visibility:hidden !important;
}
}
</code></pre>
<p>I fix it for you, please check on your end.</p>
<p>Thanks</p>
						]]>
					</description>

					
					
				</item>

					
		
	</channel>
	</rss>

