<?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>jQuery problems &#8211; Themeco Community</title>
		<atom:link href="https://theme.co/archive/forums/topic/jquery-problems/feed/" rel="self" type="application/rss+xml" />
		<link>https://theme.co/archive/forums/topic/jquery-problems/feed/</link>
		<description></description>
		<lastBuildDate>Fri, 31 Oct 2025 04:06:50 +0000</lastBuildDate>
		<generator>https://bbpress.org/?v=2.6.14</generator>
		<language>en-US</language>

		
														
					
				<item>
					<guid>https://theme.co/archive/forums/topic/jquery-problems/#post-108180</guid>
					<title><![CDATA[jQuery problems]]></title>
					<link>https://theme.co/archive/forums/topic/jquery-problems/#post-108180</link>
					<pubDate>Fri, 19 Sep 2014 18:30:55 +0000</pubDate>
					<dc:creator>Liquidator</dc:creator>

					<description>
						<![CDATA[
						<p>Ok, guyz, i made one-page navigation website with other &#8220;Read More&#8221;-typed pages. So, when i try to go back from other pages through the menu i had a problem (because in the menu, they linked to #contend_band stuff). I searched the forum and found this code in Global Customiser. </p>
<pre><code>// Conditions
// 1. Menu should be using full url, eg. http://site.com/#x-content-band-1 and not just #x-content-band-1
// 2. Use just one menu for both Primary and One Page.

jQuery(function($){
	
	var window_base = window.location.href.split(&quot;#&quot;).slice(0)[0];
	var window_hash = window.location.href.split(&quot;#&quot;).slice(-1)[0];
	var outbound = /^https?:///i;

	$(&#039;.x-nav a&#039;).each(function(){ //Scan links and convert them to relative hash for one page navigation&#039;s Active statuses to work properly when manually scrolling

		var hash = $(this).attr(&#039;href&#039;).split(&quot;#&quot;).slice(-1)[0];
		var anchor_base = $(this).attr(&#039;href&#039;).split(&quot;#&quot;).slice(0)[0];

	    if(hash) { //Does it have hash? then perform check
		    if(anchor_base == window_base) { //If same page, then no need to reload, just make it relative
		    	$(this).attr(&#039;href&#039;, &#039;#&#039;+hash);
		    } // Else, leave it that way. So when user clicked, it will just link them to outbound page
		}

	}).click(function(e){ //Enable Parent and Submenu scrolling
		
		var hash = $(this).attr(&#039;href&#039;).split(&quot;#&quot;).slice(-1)[0];

	    if(hash &amp;&amp; !outbound.test( $(this).attr(&#039;href&#039;) ) ) { //Does it have relative hash?

		    	e.preventDefault(); //Disable jumping
		    	e.stopPropagation();

		    	$(&#039;html,body&#039;).animate({ scrollTop: $(&#039;#&#039; + hash ).offset().top - $(&#039;.x-navbar&#039;).height()},700 ,&#039;swing&#039;);

		    	//Now add active status for automatic scrolling
		    	$(&#039;.x-nav li&#039;).removeClass(&#039;current-menu-item&#039;);
		    	$(this).parent().addClass(&#039;current-menu-item&#039;);

		}

	});

	$(document).ready(function(){ // Enable auto scroll when loaded.
		
		$(&#039;.x-nav li&#039;).removeClass(&#039;current-menu-item&#039;);
		//$(&#039;a:not([href*=&quot;#&quot;])&#039;).parent().addClass(&#039;current-menu-item&#039;); For experiment only

		if(window_hash) {
			$(&#039;a[href$=&quot;#&#039;+window_hash+&#039;&quot;]&#039;).click(); //Click it, so it will use default click from one page navigation event and submenu event
		}
	})

});</code></pre>
<p>Moreover, when i erase this code from Javascript (Customiser page), it looks like this:</p>
<p><img decoding="async" src="http://s020.radikal.ru/i717/1409/b4/c7d79476901d.png" alt="Bug" /></p>
<p>(As if all bands were active) + animation of navigation on homepage stops working. </p>
<p>Menu worked from other pages, but some of my scripts broke. For example, go to this page:<br />
<a href="http://nar-logistics.kz/about_us/" title="Bug 1 with images" rel="nofollow"><br />
</a>Hover on ALL images and move away the mouse cursor. You&#8217;ll notice that tooltip doesn&#8217;t goes away.</p>
<p>Now, go here: <a href="http://nar-logistics.kz/price/" title="Bug 2 with tabs" rel="nofollow"></a><br />
Try to switch the tabs. They don&#8217;t work. </p>
<p>Moreover, about optimisation:</p>
<p>3. W3TC. <a href="https://developers.google.com/speed/pagespeed/insights/?url=http%3A%2F%2Fnar-logistics.kz%2F&amp;tab=desktop" title="Google Page Speed" rel="nofollow">Google Page Speed</a> stuff shows that caching is not enabled. However, it&#8217;s not true. Something wrong.</p>
<p>4. Minifying by gzip crashes my site, could you also please check it?</p>
<p>5. Google also tells me that this scripts prepare to open proper my page:</p>
<p><a href="http://nar-logistics.kz/wp-includes/js/jquery/jquery.js" rel="nofollow">http://nar-logistics.kz/wp-includes/js/jquery/jquery.js</a><br />
<a href="http://nar-logistics.kz/…includes/js/jquery/jquery-migrate.min.js" rel="nofollow">http://nar-logistics.kz/…includes/js/jquery/jquery-migrate.min.js</a><br />
<a href="http://nar-logistics.kz/…s/x/framework/js/dist/site/x-head.min.js" rel="nofollow">http://nar-logistics.kz/…s/x/framework/js/dist/site/x-head.min.js</a><br />
<a href="http://nar-logistics.kz/…es/js/dist/site/x-shortcodes-head.min.js" rel="nofollow">http://nar-logistics.kz/…es/js/dist/site/x-shortcodes-head.min.js</a><br />
<a href="http://nar-logistics.kz/…s/x/framework/js/dist/site/x-body.min.js" rel="nofollow">http://nar-logistics.kz/…s/x/framework/js/dist/site/x-body.min.js</a><br />
<a href="http://nar-logistics.kz/wp-includes/js/comment-reply.min.js" rel="nofollow">http://nar-logistics.kz/wp-includes/js/comment-reply.min.js</a><br />
<a href="http://nar-logistics.kz/…es/js/dist/site/x-shortcodes-body.min.js" rel="nofollow">http://nar-logistics.kz/…es/js/dist/site/x-shortcodes-body.min.js</a></p>
<p>Optimise this scripts also:<br />
<a href="http://nar-logistics.kz/wp-content/uploads/useanyfont/uaf.css" rel="nofollow">http://nar-logistics.kz/wp-content/uploads/useanyfont/uaf.css</a><br />
<a href="http://nar-logistics.kz/…p-content/themes/x-child-renew/style.css" rel="nofollow">http://nar-logistics.kz/…p-content/themes/x-child-renew/style.css</a><br />
<a href="http://nar-logistics.kz/…es/x/framework/css/site/stacks/renew.css" rel="nofollow">http://nar-logistics.kz/…es/x/framework/css/site/stacks/renew.css</a><br />
<a href="http://fonts.googleapis.com/…o:900" rel="nofollow">http://fonts.googleapis.com/…o:900</a>|Offside:400&#038;subset=latin,latin-ext<br />
<a href="http://nar-logistics.kz/…ntent/plugins/x-shortcodes/css/renew.css" rel="nofollow">http://nar-logistics.kz/…ntent/plugins/x-shortcodes/css/renew.css</a></p>
<p>Thank you!</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/jquery-problems/#post-108181</guid>
					<title><![CDATA[Reply To: jQuery problems]]></title>
					<link>https://theme.co/archive/forums/topic/jquery-problems/#post-108181</link>
					<pubDate>Fri, 19 Sep 2014 18:31:11 +0000</pubDate>
					<dc:creator>Liquidator</dc:creator>

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

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/jquery-problems/#post-108246</guid>
					<title><![CDATA[Reply To: jQuery problems]]></title>
					<link>https://theme.co/archive/forums/topic/jquery-problems/#post-108246</link>
					<pubDate>Fri, 19 Sep 2014 19:58:19 +0000</pubDate>
					<dc:creator>Rad</dc:creator>

					<description>
						<![CDATA[
						<p>Hi there,</p>
<p>I guess you already found a way to make it work 🙂 Good job!</p>
<p>You must only use cache/minify&#8217;s option recommended by your cache plugin. And gzip isn&#8217;t one of it&#8217;s option. Gzip compression is automatic when enabled and not totally related to minifier.</p>
<p>Have you setup your minifier correctly? <a href="http://nar-logistics.kz/wp-admin/admin.php?page=w3tc_install" rel="nofollow">http://nar-logistics.kz/wp-admin/admin.php?page=w3tc_install</a></p>
<p>Cheers!</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/jquery-problems/#post-108330</guid>
					<title><![CDATA[Reply To: jQuery problems]]></title>
					<link>https://theme.co/archive/forums/topic/jquery-problems/#post-108330</link>
					<pubDate>Fri, 19 Sep 2014 21:42:33 +0000</pubDate>
					<dc:creator>Liquidator</dc:creator>

					<description>
						<![CDATA[
						<p>Ok, support.</p>
<p>I didn&#8217;t find a way to make it work! 🙂 So, i need your help on everything i wrote in the first post.</p>
<p>P.S. I made a minifier setup correctly, btw &#8220;Browser Cache&#8221; option in W3TC crashes the website. (you can try it yourself)<br />
+ Minifier option crashes site (100%)<br />
+ One more question: How did you guyz make image before static menu on <a href="http://theme.co/x/" rel="nofollow">http://theme.co/x/</a> ? I&#8217;d like to do the same thing</p>
<p><img decoding="async" src="http://s017.radikal.ru/i427/1409/08/e4df1f32927e.png" alt="bug2" /><br />
wrong alignment. check it out, please.</p>
<p>Waiting for response. Thank you.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/jquery-problems/#post-108425</guid>
					<title><![CDATA[Reply To: jQuery problems]]></title>
					<link>https://theme.co/archive/forums/topic/jquery-problems/#post-108425</link>
					<pubDate>Sat, 20 Sep 2014 00:40:00 +0000</pubDate>
					<dc:creator>Rad</dc:creator>

					<description>
						<![CDATA[
						<p>Hi there,</p>
<p>Okay saw it, it&#8217;s not crashing but it links to no existing minified files. If the link isn&#8217;t found then you will lost some styling. Common cause are not properly installed minifier and not writable cache folder. We do not support 3rd party plugin troubleshooting. But you may provide ftp login so we could do some quick check up.</p>
<p>Are you referring to fixed menu? You can enable it at<strong> Admin &gt; Appearance &gt; Customizer &gt; Header &gt; Navbar Position &gt; Fixed Top</strong>.</p>
<p>The alignment is just normal because you&#8217;re using column. Content from each column are independent to each other 🙂 The solution for that is using gap shortcode. Just add more gap space to align them accordingly.</p>
<p>Cheers!</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/jquery-problems/#post-108552</guid>
					<title><![CDATA[Reply To: jQuery problems]]></title>
					<link>https://theme.co/archive/forums/topic/jquery-problems/#post-108552</link>
					<pubDate>Sat, 20 Sep 2014 09:42:36 +0000</pubDate>
					<dc:creator>Liquidator</dc:creator>

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

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/jquery-problems/#post-108571</guid>
					<title><![CDATA[Reply To: jQuery problems]]></title>
					<link>https://theme.co/archive/forums/topic/jquery-problems/#post-108571</link>
					<pubDate>Sat, 20 Sep 2014 10:21:20 +0000</pubDate>
					<dc:creator>Liquidator</dc:creator>

					<description>
						<![CDATA[
						<p>UPD: Ok, i switched off W3TC and website looks OK, except 404 on &#8220;Read more&#8221; buttons on the main. However, those pages do exist.<br />
It&#8217;s not fixed menu! Go to your main demo <a href="http://theme.co/x/" rel="nofollow">http://theme.co/x/</a><br />
You see huge bg image and menu at the bottom. When you scroll down it becomes static! That&#8217;s what i&#8217;m saying.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/jquery-problems/#post-108612</guid>
					<title><![CDATA[Reply To: jQuery problems]]></title>
					<link>https://theme.co/archive/forums/topic/jquery-problems/#post-108612</link>
					<pubDate>Sat, 20 Sep 2014 13:29:32 +0000</pubDate>
					<dc:creator>Christopher</dc:creator>

					<description>
						<![CDATA[
						<p>Hi there,</p>
<p>Please check <a href="http://theme.co/x/member/kb/sliders/" rel="nofollow">http://theme.co/x/member/kb/sliders/</a>,you can set slider above masthead and use fixed menu(which is now) to achieve the style.</p>
<p>Hope it helps.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/jquery-problems/#post-108646</guid>
					<title><![CDATA[Reply To: jQuery problems]]></title>
					<link>https://theme.co/archive/forums/topic/jquery-problems/#post-108646</link>
					<pubDate>Sat, 20 Sep 2014 14:51:23 +0000</pubDate>
					<dc:creator>Liquidator</dc:creator>

					<description>
						<![CDATA[
						<p>Ok, i figured out that 404 problem was because of bad .htaccess file. I restored it and now almost everything is ok.<br />
Except this:<br />
Open this link: <a href="http://nar-logistics.kz/price/" rel="nofollow">http://nar-logistics.kz/price/</a><br />
Try to press any tab (they don&#8217;t work because of code on the first message).<br />
If i remove that JS code, navigation between homepage and other pages stop to work either. Help me please with fixing it. </p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/jquery-problems/#post-108729</guid>
					<title><![CDATA[Reply To: jQuery problems]]></title>
					<link>https://theme.co/archive/forums/topic/jquery-problems/#post-108729</link>
					<pubDate>Sat, 20 Sep 2014 17:55:07 +0000</pubDate>
					<dc:creator>Kosher K</dc:creator>

					<description>
						<![CDATA[
						<p>Hi,</p>
<p>Can you please remove the previous code from your Customizer&#8217;s Javascript and add this code below instead in your Child theme functions.php</p>
<pre><code>add_action(&#039;wp_footer&#039;,&#039;additional_onepager_script&#039;);
function additional_onepager_script() {
	if ( !is_page(6643) ) { ?&gt;
&lt;script id=&quot;custom-js&quot;&gt;
jQuery(function($){
	
	var window_base = window.location.href.split(&quot;#&quot;).slice(0)[0];
	var window_hash = window.location.href.split(&quot;#&quot;).slice(-1)[0];
	var outbound = /^https?:///i;

	$(&#039;.x-nav a&#039;).each(function(){ 
		var hash = $(this).attr(&#039;href&#039;).split(&quot;#&quot;).slice(-1)[0];
		var anchor_base = $(this).attr(&#039;href&#039;).split(&quot;#&quot;).slice(0)[0];
	    if(hash) { //Does it have hash? then perform check
		    if(anchor_base == window_base) { //If same page, then no need to reload, just make it relative
		    	$(this).attr(&#039;href&#039;, &#039;#&#039;+hash);
		    } // Else, leave it that way. So when user clicked, it will just link them to outbound page
		}
	}).click(function(e){ //Enable Parent and Submenu scrolling
		var hash = $(this).attr(&#039;href&#039;).split(&quot;#&quot;).slice(-1)[0];
	    if(hash &amp;&amp; !outbound.test( $(this).attr(&#039;href&#039;) ) ) { //Does it have relative hash?
		    	e.preventDefault(); //Disable jumping
		    	e.stopPropagation();
		    	$(&#039;html,body&#039;).animate({ scrollTop: $(&#039;#&#039; + hash ).offset().top - $(&#039;.x-navbar&#039;).height()},700 ,&#039;swing&#039;);
		    	$(&#039;.x-nav li&#039;).removeClass(&#039;current-menu-item&#039;);
		    	$(this).parent().addClass(&#039;current-menu-item&#039;);
		}

	});
	$(document).ready(function(){ // Enable auto scroll when loaded.
		$(&#039;.x-nav li&#039;).removeClass(&#039;current-menu-item&#039;);
		if(window_hash) {
			$(&#039;a[href$=&quot;#&#039;+window_hash+&#039;&quot;]&#039;).click(); //Click it, so it will use default click from one page navigation event and submenu event
		}
	})
}); 
&lt;/script&gt;
&lt;?php
	}
}</code></pre>
<p>Let me know how it works.</p>
						]]>
					</description>

					
					
				</item>

					
		
	</channel>
	</rss>

