<?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>Links to Nav Tabs &#8211; Themeco Community</title>
		<atom:link href="https://theme.co/archive/forums/topic/links-to-nav-tabs/feed/" rel="self" type="application/rss+xml" />
		<link>https://theme.co/archive/forums/topic/links-to-nav-tabs/feed/</link>
		<description></description>
		<lastBuildDate>Wed, 15 Oct 2025 09:02:36 +0000</lastBuildDate>
		<generator>https://bbpress.org/?v=2.6.14</generator>
		<language>en-US</language>

		
														
					
				<item>
					<guid>https://theme.co/archive/forums/topic/links-to-nav-tabs/#post-44250</guid>
					<title><![CDATA[Links to Nav Tabs]]></title>
					<link>https://theme.co/archive/forums/topic/links-to-nav-tabs/#post-44250</link>
					<pubDate>Wed, 14 May 2014 10:24:18 +0000</pubDate>
					<dc:creator>Global B</dc:creator>

					<description>
						<![CDATA[
						<p>Hi there, </p>
<p>How can i Link to a Nav Tab Item? Where can I find this link? </p>
<p>I&#8217;ve got 5 tabs in a page, and I want to make a button that links to one of these Nav Tab Items.</p>
<p>Tnx in advance!</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/links-to-nav-tabs/#post-44565</guid>
					<title><![CDATA[Reply To: Links to Nav Tabs]]></title>
					<link>https://theme.co/archive/forums/topic/links-to-nav-tabs/#post-44565</link>
					<pubDate>Thu, 15 May 2014 03:55:32 +0000</pubDate>
					<dc:creator>Rad</dc:creator>

					<description>
						<![CDATA[
						<p>Hi GLobal,</p>
<p>Thank you for writing in!</p>
<p>You could do that by adding this at your customizer&#8217;s custom javascript.</p>
<pre><code>jQuery(window).load(function() {
            
            var tab_nav = jQuery(&#039;.x-nav-tabs .x-nav-tabs-item a[href=&quot;#&#039; + location.href.split(&quot;#&quot;).slice(-1)[0] + &#039;&quot;]&#039;);
            
            jQuery(tab_nav).click();

            jQuery(&#039;html,body&#039;).animate({
			      scrollTop: jQuery(tab_nav).offset().top - jQuery(&#039;header.masthead&#039;).height()
			    },700 ,&#039;swing&#039;);

});</code></pre>
<p>Then you could just add url at your button or link with your tab id (eg. #tab-1).</p>
<p>Hope this helps.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/links-to-nav-tabs/#post-44691</guid>
					<title><![CDATA[Reply To: Links to Nav Tabs]]></title>
					<link>https://theme.co/archive/forums/topic/links-to-nav-tabs/#post-44691</link>
					<pubDate>Thu, 15 May 2014 09:30:46 +0000</pubDate>
					<dc:creator>Global B</dc:creator>

					<description>
						<![CDATA[
						<p>Hi, thank you. </p>
<p>I&#8217;ve one problem. The link to a specific tab only works with a button from another page, or when I put the link into the browser.</p>
<p>So when the button is at the same page as where the tab is on (The tab where I&#8217;m linking to), the link does not work.</p>
<p>Edit: I can see that when I press the button -which is on the same page as the tab- that the link does change in my internet browser, but there is just nothing happening. It is not searching for that specific link. </p>
<p>When I hit enter after selecting the link in my browser, so that he start browsing for that same link, it does work&#8230;</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/links-to-nav-tabs/#post-44941</guid>
					<title><![CDATA[Reply To: Links to Nav Tabs]]></title>
					<link>https://theme.co/archive/forums/topic/links-to-nav-tabs/#post-44941</link>
					<pubDate>Thu, 15 May 2014 23:54:17 +0000</pubDate>
					<dc:creator>Rad</dc:creator>

					<description>
						<![CDATA[
						<p>Hi GLobal,</p>
<p>Here is the revised code that you can use. 🙂</p>
<pre><code>jQuery(window).load(function() {
  x_scroll_to_tab(jQuery);
});

jQuery(function($){
  $(&#039;.link_to_tab&#039;).click(function(e){
    e.preventDefault();
    x_scroll_to_tab($);
  });
});

function x_scroll_to_tab($) {
            var tab_nav = $(&#039;.x-nav-tabs .x-nav-tabs-item a[href=&quot;#&#039; + location.href.split(&quot;#&quot;).slice(-1)[0] + &#039;&quot;]&#039;);
            $(tab_nav).click();
            $(&#039;html,body&#039;).animate({scrollTop: jQuery(tab_nav).offset().top - jQuery(&#039;header.masthead&#039;).height() },700 ,&#039;swing&#039;);
}</code></pre>
<p>If you add a link, or a button, then you will need to add <strong>link_to_tab</strong> at their class attribute. </p>
<p>Hope this helps.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/links-to-nav-tabs/#post-46018</guid>
					<title><![CDATA[Reply To: Links to Nav Tabs]]></title>
					<link>https://theme.co/archive/forums/topic/links-to-nav-tabs/#post-46018</link>
					<pubDate>Mon, 19 May 2014 15:04:11 +0000</pubDate>
					<dc:creator>Global B</dc:creator>

					<description>
						<![CDATA[
						<p>I don&#8217;t understand what you mean with: &#8216;If you add a link, or a button, then will need to add link_to_tab at their class attribute&#8217;.</p>
<p>What do I have to do to make it work? How does the link of the button has to look like? Maybe explaining it in steps, it will make it understandable for me&#8230;</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/links-to-nav-tabs/#post-46228</guid>
					<title><![CDATA[Reply To: Links to Nav Tabs]]></title>
					<link>https://theme.co/archive/forums/topic/links-to-nav-tabs/#post-46228</link>
					<pubDate>Tue, 20 May 2014 03:43:40 +0000</pubDate>
					<dc:creator>Christian</dc:creator>

					<description>
						<![CDATA[
						<p>Hey there,</p>
<p>For the link, the code will look like</p>
<p><a href="#your-url" rel="nofollow">Text or Image</a></p>
<p>The button shortcode will look like</p>
<p>[button class=&#8221;link_to_tab&#8221;]Text[/button]</p>
<p>Hope that helps. 🙂</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/links-to-nav-tabs/#post-46377</guid>
					<title><![CDATA[Reply To: Links to Nav Tabs]]></title>
					<link>https://theme.co/archive/forums/topic/links-to-nav-tabs/#post-46377</link>
					<pubDate>Tue, 20 May 2014 11:02:06 +0000</pubDate>
					<dc:creator>Global B</dc:creator>

					<description>
						<![CDATA[
						<p>Sorry, but it doesn&#8217;t help, it doesn&#8217;t work&#8230;. I want to know what the link has to be to make it work.</p>
<p>What is the link I have to use? Is it like this? </p>
<p><a href="http://www.mywebsite.com/look-at-this-tab/#tab-4" rel="nofollow">http://www.mywebsite.com/look-at-this-tab/#tab-4</a></p>
<p>Because that does not work. </p>
<p>The steps i did take whas:</p>
<p>1. Putting the code into the custom java script<br />
2. Making a text at the same page where the tab is on with a link like this: <a href="http://www.mywebsite.com/look-at-this-tab/#tab-4" rel="nofollow">http://www.mywebsite.com/look-at-this-tab/#tab-4</a></p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/links-to-nav-tabs/#post-46670</guid>
					<title><![CDATA[Reply To: Links to Nav Tabs]]></title>
					<link>https://theme.co/archive/forums/topic/links-to-nav-tabs/#post-46670</link>
					<pubDate>Wed, 21 May 2014 04:26:19 +0000</pubDate>
					<dc:creator>Christian</dc:creator>

					<description>
						<![CDATA[
						<p>Hey there,</p>
<p>Sorry the code above wasn&#8217;t wrapped properly to display. It should be </p>
<p>For the link, the code will look like</p>
<p><code>&lt;a class=&quot;link_to_tab&quot; href=&quot;#your-url&quot;&gt;Text or Image&lt;/a&gt;</code></p>
<p>The button shortcode will look like</p>
<p><code>[button class=&quot;link_to_tab&quot;]Text[/button]</code></p>
<p>Thanks.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/links-to-nav-tabs/#post-46774</guid>
					<title><![CDATA[Reply To: Links to Nav Tabs]]></title>
					<link>https://theme.co/archive/forums/topic/links-to-nav-tabs/#post-46774</link>
					<pubDate>Wed, 21 May 2014 09:40:49 +0000</pubDate>
					<dc:creator>Global B</dc:creator>

					<description>
						<![CDATA[
						<p>It is still the same problem. This link: <a href="http://www.mywebsite.com/look-at-this-page/#tab-4" rel="nofollow">http://www.mywebsite.com/look-at-this-page/#tab-4</a> does work from another webpage, but it does not work when it is at the same page as where the tab is located. </p>
<p>Nothing happens by clicking this link when it is placed at the same page where the tab is at.</p>
<p>Please help!</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/links-to-nav-tabs/#post-47076</guid>
					<title><![CDATA[Reply To: Links to Nav Tabs]]></title>
					<link>https://theme.co/archive/forums/topic/links-to-nav-tabs/#post-47076</link>
					<pubDate>Wed, 21 May 2014 23:41:07 +0000</pubDate>
					<dc:creator>Rad</dc:creator>

					<description>
						<![CDATA[
						<p>Hi Global,</p>
<p>If could be much easier if you could provide a correct url of your site :).</p>
<p>For the mean time, you could change this  :</p>
<pre><code>$(&#039;.link_to_tab&#039;).click(function(e){
    e.preventDefault();
    x_scroll_to_tab($);
  });</code></pre>
<p>to this :</p>
<pre><code>$(&#039;.link_to_tab&#039;).live(&#039;click&#039;, function(e){
    e.preventDefault();
    x_scroll_to_tab($);
  });</code></pre>
<p>from the given code above.</p>
<p>Let us know.</p>
						]]>
					</description>

					
					
				</item>

					
		
	</channel>
	</rss>

