<?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 Icon Toggle &#8211; Themeco Community</title>
		<atom:link href="https://theme.co/archive/forums/topic/mobile-icon-toggle/feed/" rel="self" type="application/rss+xml" />
		<link>https://theme.co/archive/forums/topic/mobile-icon-toggle/feed/</link>
		<description></description>
		<lastBuildDate>Fri, 17 Oct 2025 03:14:28 +0000</lastBuildDate>
		<generator>https://bbpress.org/?v=2.6.14</generator>
		<language>en-US</language>

		
														
					
				<item>
					<guid>https://theme.co/archive/forums/topic/mobile-icon-toggle/#post-104235</guid>
					<title><![CDATA[Mobile Icon Toggle]]></title>
					<link>https://theme.co/archive/forums/topic/mobile-icon-toggle/#post-104235</link>
					<pubDate>Sat, 13 Sep 2014 19:37:05 +0000</pubDate>
					<dc:creator>Jeff F</dc:creator>

					<description>
						<![CDATA[
						<p>I have customized my mobile navigation with the icon found here.. <a href="http://codepen.io/rictorres/pen/ycudz" rel="nofollow">http://codepen.io/rictorres/pen/ycudz</a> . It currently runs the toggle event</p>
<p>jQuery(&#8220;#menu&#8221;).click(function(event) {<br />
  event.preventDefault();<br />
  jQuery(this).toggleClass(&#8220;on&#8221;);<br />
});</p>
<p>to animate from a &#8220;3 bar&#8221; to an &#8220;x&#8221; as the menu opens and closes. I have it running on my website <a href="http://www.farrfolio.com" rel="nofollow">http://www.farrfolio.com</a> but the problem is if you click it twice fast it will display the wrong state. I believe this is so because it&#8217;s running a different toggle event than the one with the menu. </p>
<p>My question is where in the js library can I find the toggle event so I can sync them.</p>
<p>Appreciate any direction.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/mobile-icon-toggle/#post-104269</guid>
					<title><![CDATA[Reply To: Mobile Icon Toggle]]></title>
					<link>https://theme.co/archive/forums/topic/mobile-icon-toggle/#post-104269</link>
					<pubDate>Sat, 13 Sep 2014 21:11:44 +0000</pubDate>
					<dc:creator>Rad</dc:creator>

					<description>
						<![CDATA[
						<p>Hi Jeff,</p>
<p>Thanks for posting in.</p>
<p>Could you try this one ?</p>
<pre><code>jQuery(&quot;#menu&quot;).click(function(event) {
  event.preventDefault();
	jQuery(&#039;.x-nav-collapse&#039;).promise().done(function(){
		jQuery(&quot;#menu&quot;).toggleClass(&quot;on&quot;);
	});
});  </code></pre>
<p>X menu is based on bootstrap framework where javascript files are compiled and minified. It will be be not that easy and we do not support any modification of core files.</p>
<p>Thanks.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/mobile-icon-toggle/#post-104291</guid>
					<title><![CDATA[Reply To: Mobile Icon Toggle]]></title>
					<link>https://theme.co/archive/forums/topic/mobile-icon-toggle/#post-104291</link>
					<pubDate>Sat, 13 Sep 2014 22:00:31 +0000</pubDate>
					<dc:creator>Jeff F</dc:creator>

					<description>
						<![CDATA[
						<p>Unfortunately this didn&#8217;t work in the customize &gt; javascript area. I was directed to use something along the lines of this but I can&#8217;t get it to work either. </p>
<pre><code>$(&quot;#general_show&quot;).click(function () {
    var $this = $(this);
    if ($this.hasClass(&#039;selected&#039;)) {
        $this.removeClass(&#039;selected&#039;).parent().next().hide();
    } else {
        $this.addClass(&#039;selected&#039;).parent().next().show();
    }
    return(false);
});

$(document).click(function (e) {
    if ($(&#039;#general_info&#039;).is(&#039;:visible&#039;) &amp;&amp;
          $(e.target).parents(&#039;#general_info&#039;).length === 0) {
      $(&#039;#general_show&#039;).removeClass(&#039;selected&#039;).parent().next().hide();
      return(false);
    }
});</code></pre>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/mobile-icon-toggle/#post-104322</guid>
					<title><![CDATA[Reply To: Mobile Icon Toggle]]></title>
					<link>https://theme.co/archive/forums/topic/mobile-icon-toggle/#post-104322</link>
					<pubDate>Sat, 13 Sep 2014 23:27:57 +0000</pubDate>
					<dc:creator>Rad</dc:creator>

					<description>
						<![CDATA[
						<p>Hi Jeff,</p>
<p>What is #general_show? I can only see #menu as mobile menu toggle&#8217;s ID. </p>
<p>Would you mind providing us with login credentials so we can take a closer look? To do this, you can make a post with the following info:</p>
<p>&#8211; Link to your site<br />
&#8211; WordPress Admin username / password<br />
&#8211; FTP credentials</p>
<p><strong>Don&#8217;t forget to select Set as private reply. This ensures your information is only visible to our staff. </strong></p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/mobile-icon-toggle/#post-104555</guid>
					<title><![CDATA[Reply To: Mobile Icon Toggle]]></title>
					<link>https://theme.co/archive/forums/topic/mobile-icon-toggle/#post-104555</link>
					<pubDate>Sun, 14 Sep 2014 15:35:59 +0000</pubDate>
					<dc:creator>Jeff F</dc:creator>

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

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/mobile-icon-toggle/#post-104582</guid>
					<title><![CDATA[Reply To: Mobile Icon Toggle]]></title>
					<link>https://theme.co/archive/forums/topic/mobile-icon-toggle/#post-104582</link>
					<pubDate>Sun, 14 Sep 2014 16:35:50 +0000</pubDate>
					<dc:creator>Christopher</dc:creator>

					<description>
						<![CDATA[
						<p>Hi there,<br />
Would you please add the code below into <strong>Customize -&gt; Custom -&gt; Javascript</strong>:</p>
<pre><code>jQuery(“#menu”).off(&#039;click&#039;).on(&#039;click&#039;, function(event) {
	event.preventDefault();
	jQuery(this).toggleClass(“on”);
});</code></pre>
<p>This code disables all theme related click events for the hamburger button then adds your code there. Check if this solves the problem.</p>
<p>Hope it helps.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/mobile-icon-toggle/#post-104589</guid>
					<title><![CDATA[Reply To: Mobile Icon Toggle]]></title>
					<link>https://theme.co/archive/forums/topic/mobile-icon-toggle/#post-104589</link>
					<pubDate>Sun, 14 Sep 2014 16:58:59 +0000</pubDate>
					<dc:creator>Jeff F</dc:creator>

					<description>
						<![CDATA[
						<p>So this disabled the animation all together as you can find here <a href="http://www.farrfolio.com" rel="nofollow">http://www.farrfolio.com</a></p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/mobile-icon-toggle/#post-104636</guid>
					<title><![CDATA[Reply To: Mobile Icon Toggle]]></title>
					<link>https://theme.co/archive/forums/topic/mobile-icon-toggle/#post-104636</link>
					<pubDate>Sun, 14 Sep 2014 19:43:17 +0000</pubDate>
					<dc:creator>Rad</dc:creator>

					<description>
						<![CDATA[
						<p>Hi Jeff,</p>
<p>Menu toggle should happen after menu collapse animation. Since your toggling it on and off without checking if the collapse animation is finished, then you will animate the menu button regardless of collapsed status.</p>
<p>As given before, this should work.</p>
<pre><code>jQuery(&quot;#menu&quot;).click(function(event) {
  event.preventDefault();
	jQuery(&#039;.x-nav-collapse&#039;).promise().done(function(){
		jQuery(&quot;#menu&quot;).toggleClass(&quot;on&quot;);
	});
});  </code></pre>
<p>Though, seems like animation event isn&#8217;t attached to <strong>.x-nav-collapse</strong> so it isn&#8217;t working. Just use this one to make it faster, real time checking of collapsed status.</p>
<pre><code>setInterval ( function(){

if ( jQuery(&#039;.x-nav-collapse&#039;).hasClass(&#039;in&#039;) ){
	jQuery(&quot;#menu&quot;).addClass(&#039;on&#039;);
}
else {
	jQuery(&quot;#menu&quot;).removeClass(&#039;on&#039;);
}

}, 300 );

</code></pre>
<p>Already added at your customizer&#8217;s custom javascrip.</p>
<p>Cheers!</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/mobile-icon-toggle/#post-105109</guid>
					<title><![CDATA[Reply To: Mobile Icon Toggle]]></title>
					<link>https://theme.co/archive/forums/topic/mobile-icon-toggle/#post-105109</link>
					<pubDate>Mon, 15 Sep 2014 14:16:33 +0000</pubDate>
					<dc:creator>Jeff F</dc:creator>

					<description>
						<![CDATA[
						<p>Thank you that worked!</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/mobile-icon-toggle/#post-105118</guid>
					<title><![CDATA[Reply To: Mobile Icon Toggle]]></title>
					<link>https://theme.co/archive/forums/topic/mobile-icon-toggle/#post-105118</link>
					<pubDate>Mon, 15 Sep 2014 14:28:36 +0000</pubDate>
					<dc:creator>Cousett</dc:creator>

					<description>
						<![CDATA[
						<p>Glad we were able to help. 🙂 Have a nice day. </p>
						]]>
					</description>

					
					
				</item>

					
		
	</channel>
	</rss>

