<?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>tabbed content &#8211; page scrolls each time a tab is clicked &#8211; Themeco Community</title>
		<atom:link href="https://theme.co/archive/forums/topic/tabbed-content-page-scrolls-each-time-a-tab-is-clicked/feed/" rel="self" type="application/rss+xml" />
		<link>https://theme.co/archive/forums/topic/tabbed-content-page-scrolls-each-time-a-tab-is-clicked/feed/</link>
		<description></description>
		<lastBuildDate>Fri, 14 Nov 2025 07:23:24 +0000</lastBuildDate>
		<generator>https://bbpress.org/?v=2.6.14</generator>
		<language>en-US</language>

		
														
					
				<item>
					<guid>https://theme.co/archive/forums/topic/tabbed-content-page-scrolls-each-time-a-tab-is-clicked/#post-56869</guid>
					<title><![CDATA[tabbed content &#8211; page scrolls each time a tab is clicked]]></title>
					<link>https://theme.co/archive/forums/topic/tabbed-content-page-scrolls-each-time-a-tab-is-clicked/#post-56869</link>
					<pubDate>Mon, 16 Jun 2014 14:36:57 +0000</pubDate>
					<dc:creator>Happy Cow</dc:creator>

					<description>
						<![CDATA[
						<p>hey guys!</p>
<p>url: happycowstudios.com</p>
<p>under the process section, you&#8217;ll find some tabbed content. each time you select one of the tabs, the page scrolls a little, until eventually, the whole section is off the page. not sure what is causing it. please advise.</p>
<p>thanks so much!</p>
<p>cheers!<br />
shaun</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/tabbed-content-page-scrolls-each-time-a-tab-is-clicked/#post-57439</guid>
					<title><![CDATA[Reply To: tabbed content &#8211; page scrolls each time a tab is clicked]]></title>
					<link>https://theme.co/archive/forums/topic/tabbed-content-page-scrolls-each-time-a-tab-is-clicked/#post-57439</link>
					<pubDate>Tue, 17 Jun 2014 17:43:31 +0000</pubDate>
					<dc:creator>Kosher K</dc:creator>

					<description>
						<![CDATA[
						<p>Hi Shuan,</p>
<p>I noticed that you have some custom script on your site for scrolling behavior,</p>
<p>there are some script I see on your site that is affecting the tab_navs like this one</p>
<pre><code>
$(&#039;html,body&#039;).animate({ scrollTop: $(&#039;#&#039; + hash ).offset().top - $(&#039;.x-navbar&#039;).height()},700 ,&#039;swing&#039;);
</code></pre>
<p>or most likely the script from  here,<br />
view-source:<a href="https://happycowstudios.com/" rel="nofollow">https://happycowstudios.com/</a><br />
from line 423 to line 476</p>
<p>Can please you advise where did you got those script so we can get an idea on whats happening. </p>
<p>Cheers</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/tabbed-content-page-scrolls-each-time-a-tab-is-clicked/#post-57458</guid>
					<title><![CDATA[Reply To: tabbed content &#8211; page scrolls each time a tab is clicked]]></title>
					<link>https://theme.co/archive/forums/topic/tabbed-content-page-scrolls-each-time-a-tab-is-clicked/#post-57458</link>
					<pubDate>Tue, 17 Jun 2014 18:25:57 +0000</pubDate>
					<dc:creator>Happy Cow</dc:creator>

					<description>
						<![CDATA[
						<p>hey! thanks for the help. i got two scripts from you guys on another thread. one was to allow smooth scrolling from other pages on the site. the other was to allow smooth scrolling from a link other than a menu item.</p>
<p>both scripts were from this thread (one pn page one, the other on page two): <a href="http://theme.co/x/member/forums/topic/nav-bar-not-fully-working-on-1-page-scrolling/" rel="nofollow">http://theme.co/x/member/forums/topic/nav-bar-not-fully-working-on-1-page-scrolling/</a></p>
<p>here is a copy of what we have in the custom javascript:</p>
<p>jQuery(function($){</p>
<p>	var window_base = window.location.href.split(&#8220;#&#8221;).slice(0)[0];<br />
	var window_hash = window.location.href.split(&#8220;#&#8221;).slice(-1)[0];<br />
	var outbound = /^https?:///i;</p>
<p>	$(&#8216;.x-nav a&#8217;).each(function(){ //Scan links and convert them to relative hash for one page navigation&#8217;s Active statuses to work properly when manually scrolling</p>
<p>		var hash = $(this).attr(&#8216;href&#8217;).split(&#8220;#&#8221;).slice(-1)[0];<br />
		var anchor_base = $(this).attr(&#8216;href&#8217;).split(&#8220;#&#8221;).slice(0)[0];</p>
<p>	    if(hash) { //Does it have hash? then perform check<br />
		    if(anchor_base == window_base) { //If same page, then no need to reload, just make it relative<br />
		    	$(this).attr(&#8216;href&#8217;, &#8216;#&#8217;+hash);<br />
		    } // Else, leave it that way. So when user clicked, it will just link them to outbound page<br />
		}</p>
<p>	}).click(function(e){ //Enable Parent and Submenu scrolling</p>
<p>		var hash = $(this).attr(&#8216;href&#8217;).split(&#8220;#&#8221;).slice(-1)[0];</p>
<p>	    if(hash &amp;&amp; !outbound.test( $(this).attr(&#8216;href&#8217;) ) ) { //Does it have relative hash?</p>
<p>		    	e.preventDefault(); //Disable jumping</p>
<p>		    	$(&#8216;html,body&#8217;).animate({ scrollTop: $(&#8216;#&#8217; + hash ).offset().top &#8211; $(&#8216;.x-navbar&#8217;).height()},700 ,&#8217;swing&#8217;);</p>
<p>		    	//Now add active status for automatic scrolling<br />
		    	$(&#8216;.x-nav li&#8217;).removeClass(&#8216;current-menu-item&#8217;);<br />
		    	$(this).parent().addClass(&#8216;current-menu-item&#8217;);</p>
<p>		}</p>
<p>	});</p>
<p>	$(document).ready(function(){ // Enable auto scroll when loaded.</p>
<p>		$(&#8216;.x-nav li&#8217;).removeClass(&#8216;current-menu-item&#8217;);<br />
		//$(&#8216;a:not([href*=&#8221;#&#8221;])&#8217;).parent().addClass(&#8216;current-menu-item&#8217;); For experiment only</p>
<p>		if(window_hash) {<br />
			$(&#8216;a[href$=&#8221;#&#8217;+window_hash+'&#8221;]&#8217;).click(); //Click it, so it will use default click from one page navigation event and submenu event<br />
		}<br />
	})</p>
<p>});</p>
<p>jQuery(function($){<br />
  $(&#8216;.scroll-link&#8217;).click(function(e){<br />
    e.preventDefault();</p>
<p>    $(&#8216;html,body&#8217;).animate({<br />
      scrollTop: $(&#8216;#&#8217; + $(this).attr(&#8216;href&#8217;).split(&#8220;#&#8221;).slice(-1)[0] ).offset().top &#8211; $(&#8216;.x-navbar&#8217;).height()<br />
    },700 ,&#8217;swing&#8217;);<br />
  });<br />
});</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/tabbed-content-page-scrolls-each-time-a-tab-is-clicked/#post-57536</guid>
					<title><![CDATA[Reply To: tabbed content &#8211; page scrolls each time a tab is clicked]]></title>
					<link>https://theme.co/archive/forums/topic/tabbed-content-page-scrolls-each-time-a-tab-is-clicked/#post-57536</link>
					<pubDate>Tue, 17 Jun 2014 22:18:40 +0000</pubDate>
					<dc:creator>Happy Cow</dc:creator>

					<description>
						<![CDATA[
						<p>no worries. i think we are going to remove the tabbed content section anyway. thanks!</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/tabbed-content-page-scrolls-each-time-a-tab-is-clicked/#post-57965</guid>
					<title><![CDATA[Reply To: tabbed content &#8211; page scrolls each time a tab is clicked]]></title>
					<link>https://theme.co/archive/forums/topic/tabbed-content-page-scrolls-each-time-a-tab-is-clicked/#post-57965</link>
					<pubDate>Wed, 18 Jun 2014 19:44:17 +0000</pubDate>
					<dc:creator>Alexander</dc:creator>

					<description>
						<![CDATA[
						<p>Ok, thanks for the update. If you need other help, feel free to get back in touch.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/tabbed-content-page-scrolls-each-time-a-tab-is-clicked/#post-164048</guid>
					<title><![CDATA[Reply To: tabbed content &#8211; page scrolls each time a tab is clicked]]></title>
					<link>https://theme.co/archive/forums/topic/tabbed-content-page-scrolls-each-time-a-tab-is-clicked/#post-164048</link>
					<pubDate>Sat, 13 Dec 2014 19:44:00 +0000</pubDate>
					<dc:creator>Gregory W</dc:creator>

					<description>
						<![CDATA[
						<p>I need support with this.  An example is on your own demo page:<br />
<a href="http://theme.co/x/demo/integrity/1/shortcodes/tabbed-content/" rel="nofollow">http://theme.co/x/demo/integrity/1/shortcodes/tabbed-content/</a></p>
<p>I don&#8217;t want users having to scroll back up once they clicked a tabbed element (LEFT or RIGHT TABS).</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/tabbed-content-page-scrolls-each-time-a-tab-is-clicked/#post-164301</guid>
					<title><![CDATA[Reply To: tabbed content &#8211; page scrolls each time a tab is clicked]]></title>
					<link>https://theme.co/archive/forums/topic/tabbed-content-page-scrolls-each-time-a-tab-is-clicked/#post-164301</link>
					<pubDate>Sun, 14 Dec 2014 12:26:20 +0000</pubDate>
					<dc:creator>Rad</dc:creator>

					<description>
						<![CDATA[
						<p>Hi Gregory,</p>
<p>Thanks for posting in.</p>
<p>Add this code at your customizer&#8217;s custom javascript.</p>
<pre><code>jQuery(function($){

$(&#039;.x-nav-tabs-item a&#039;).on(&#039;click&#039;, function(){

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

});

});</code></pre>
<p>Hope this helps.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/tabbed-content-page-scrolls-each-time-a-tab-is-clicked/#post-182155</guid>
					<title><![CDATA[Reply To: tabbed content &#8211; page scrolls each time a tab is clicked]]></title>
					<link>https://theme.co/archive/forums/topic/tabbed-content-page-scrolls-each-time-a-tab-is-clicked/#post-182155</link>
					<pubDate>Tue, 13 Jan 2015 17:53:19 +0000</pubDate>
					<dc:creator>Tyler L</dc:creator>

					<description>
						<![CDATA[
						<p>Hey, I added the code into my Customizer&#8217;s JavaScript section and am still having the issue of the page moving up a little upon each click on the Left Tabbed Content.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/tabbed-content-page-scrolls-each-time-a-tab-is-clicked/#post-182552</guid>
					<title><![CDATA[Reply To: tabbed content &#8211; page scrolls each time a tab is clicked]]></title>
					<link>https://theme.co/archive/forums/topic/tabbed-content-page-scrolls-each-time-a-tab-is-clicked/#post-182552</link>
					<pubDate>Wed, 14 Jan 2015 08:58:25 +0000</pubDate>
					<dc:creator>Christopher</dc:creator>

					<description>
						<![CDATA[
						<p>Thanks for writing in! 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/tabbed-content-page-scrolls-each-time-a-tab-is-clicked/#post-182899</guid>
					<title><![CDATA[Reply To: tabbed content &#8211; page scrolls each time a tab is clicked]]></title>
					<link>https://theme.co/archive/forums/topic/tabbed-content-page-scrolls-each-time-a-tab-is-clicked/#post-182899</link>
					<pubDate>Wed, 14 Jan 2015 16:27:48 +0000</pubDate>
					<dc:creator>Tyler L</dc:creator>

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

					
					
				</item>

					
		
	</channel>
	</rss>

