<?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>link to specific tabs &#8211; Themeco Community</title>
		<atom:link href="https://theme.co/archive/forums/topic/link-to-specific-tabs/feed/" rel="self" type="application/rss+xml" />
		<link>https://theme.co/archive/forums/topic/link-to-specific-tabs/feed/</link>
		<description></description>
		<lastBuildDate>Tue, 18 Nov 2025 18:13:14 +0000</lastBuildDate>
		<generator>https://bbpress.org/?v=2.6.14</generator>
		<language>en-US</language>

		
														
					
				<item>
					<guid>https://theme.co/archive/forums/topic/link-to-specific-tabs/#post-193142</guid>
					<title><![CDATA[link to specific tabs]]></title>
					<link>https://theme.co/archive/forums/topic/link-to-specific-tabs/#post-193142</link>
					<pubDate>Wed, 28 Jan 2015 04:07:05 +0000</pubDate>
					<dc:creator>timewarp23</dc:creator>

					<description>
						<![CDATA[
						<p>I want to link to specific tabs from the megamenu.<br />
In this example from the services drop down you can go to specific tabs<br />
<a href="http://laumont.com/index.html" rel="nofollow">http://laumont.com/index.html</a></p>
<p>Here is the X theme I am working on.<br />
<a href="http://laumont.com/NEWSITE/scanning/" rel="nofollow">http://laumont.com/NEWSITE/scanning/</a><br />
currently only scanning is up.  I am trying to link to<br />
<a href="http://laumont.com/NEWSITE/scanning/#tab-3" rel="nofollow">http://laumont.com/NEWSITE/scanning/#tab-3</a></p>
<p>Also, I am getting random red borders when I click on the tab navigation.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/link-to-specific-tabs/#post-193755</guid>
					<title><![CDATA[Reply To: link to specific tabs]]></title>
					<link>https://theme.co/archive/forums/topic/link-to-specific-tabs/#post-193755</link>
					<pubDate>Wed, 28 Jan 2015 21:10:02 +0000</pubDate>
					<dc:creator>Nabeel A</dc:creator>

					<description>
						<![CDATA[
						<p>Hi there,</p>
<p>Thanks for writing in! Regretfully, at this time I am not entirely certain what it is you would like to accomplish based on the information given in your post. If you wouldn&#8217;t mind providing us with a little more clarification on what it is you&#8217;re wanting to do (a link to a similar example site would be very helpful, or perhaps some screenshots), we&#8217;ll be happy to provide you with a response once we have a better understanding of the situation.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/link-to-specific-tabs/#post-193895</guid>
					<title><![CDATA[Reply To: link to specific tabs]]></title>
					<link>https://theme.co/archive/forums/topic/link-to-specific-tabs/#post-193895</link>
					<pubDate>Thu, 29 Jan 2015 00:26:16 +0000</pubDate>
					<dc:creator>timewarp23</dc:creator>

					<description>
						<![CDATA[
						<p>Well, I did provide an example</p>
<blockquote><p>In this example from the services drop down you can go to specific tabs</p>
<p><a href="http://laumont.com/index.html" rel="nofollow">http://laumont.com/index.html</a></p></blockquote>
<p>and here is the X theme I am working on </p>
<blockquote><p>Here is the X theme I am working on.</p>
<p><a href="http://laumont.com/NEWSITE/scanning/" rel="nofollow">http://laumont.com/NEWSITE/scanning/</a></p>
<p>currently only scanning is up. I am trying to link to</p>
<p><a href="http://laumont.com/NEWSITE/scanning/#tab-3" rel="nofollow">http://laumont.com/NEWSITE/scanning/#tab-3</a></p></blockquote>
<p>I have a Tabbed content section on the &#8220;scanning&#8221; page.  From the Main Navigation (megamenu) I want to be able to link to specific tabs.  i.e.: Click on Cruse Scanning from the main nag and go to scanning page with Cruse Scanning tab as active.</p>
<p>You also did not address the red boxes that appear on the Tab Nav when clicked.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/link-to-specific-tabs/#post-194644</guid>
					<title><![CDATA[Reply To: link to specific tabs]]></title>
					<link>https://theme.co/archive/forums/topic/link-to-specific-tabs/#post-194644</link>
					<pubDate>Thu, 29 Jan 2015 21:25:59 +0000</pubDate>
					<dc:creator>Rad</dc:creator>

					<description>
						<![CDATA[
						<p>Hi there,</p>
<p>Thanks for writing in.</p>
<p>That&#8217;s possible, add this code at customizer&#8217;s custom javascript under <strong>Admin &gt; Appearance</strong>.</p>
<pre><code>
jQuery( function($){ 
$( document ).ready( function(){
scroll_to_tab ( location.href.split(&quot;#&quot;).slice(-1)[0] );
});

$(&#039;a.link_to_tab, .link_to_tab a&#039;).on( &#039;click&#039;, function( e ){
var window_base = location.href.split(&quot;#&quot;).slice(0)[0];
var url_base = $( this ).attr(&#039;href&#039;).split(&quot;#&quot;).slice(0)[0];	 
if ( window_base == url_base ) {
scroll_to_tab ( $( this ).attr(&#039;href&#039;).split(&quot;#&quot;).slice(-1)[0] );
e.preventDefault();
}

});

function scroll_to_tab ( tab_id ) {
var tab_nav = $(&#039;.x-nav-tabs .x-nav-tabs-item a[href=&quot;#&#039; + tab_id + &#039;&quot;]&#039;);
if(tab_nav.length &gt;=1) {
$( tab_nav ).trigger(&#039;click&#039;);
$(&#039;html,body&#039;).animate({scrollTop: $(tab_nav).offset().top - ( $(&#039;.x-navbar&#039;).height() + 50 ) },700 ,&#039;swing&#039;);}
}

});</code></pre>
<p>Since, we can&#8217;t enable tab linking to all of your menu items. Then you can selectively add <strong>link_to_tab</strong> at any menu item&#8217;s css class attribute. If you can&#8217;t find your menu item&#8217;s class attribute, then please enable it at &#8220;Screen Options&#8221; on top of your page.</p>
<p>Hope this helps.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/link-to-specific-tabs/#post-194724</guid>
					<title><![CDATA[Reply To: link to specific tabs]]></title>
					<link>https://theme.co/archive/forums/topic/link-to-specific-tabs/#post-194724</link>
					<pubDate>Thu, 29 Jan 2015 22:29:12 +0000</pubDate>
					<dc:creator>timewarp23</dc:creator>

					<description>
						<![CDATA[
						<p>Hmmm&#8230;  still does not work.<br />
I have toggled the first tab and tab nav as active and not, and it did not work.<br />
I have all menu items under scanning with the class of link_to_tab.  </p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/link-to-specific-tabs/#post-194729</guid>
					<title><![CDATA[Reply To: link to specific tabs]]></title>
					<link>https://theme.co/archive/forums/topic/link-to-specific-tabs/#post-194729</link>
					<pubDate>Thu, 29 Jan 2015 22:33:35 +0000</pubDate>
					<dc:creator>timewarp23</dc:creator>

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

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/link-to-specific-tabs/#post-195467</guid>
					<title><![CDATA[Reply To: link to specific tabs]]></title>
					<link>https://theme.co/archive/forums/topic/link-to-specific-tabs/#post-195467</link>
					<pubDate>Fri, 30 Jan 2015 19:59:55 +0000</pubDate>
					<dc:creator>Rad</dc:creator>

					<description>
						<![CDATA[
						<p>Hi there,</p>
<p>Please check. Added small fix to the code.</p>
<p>Cheers!</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/link-to-specific-tabs/#post-197184</guid>
					<title><![CDATA[Reply To: link to specific tabs]]></title>
					<link>https://theme.co/archive/forums/topic/link-to-specific-tabs/#post-197184</link>
					<pubDate>Mon, 02 Feb 2015 14:13:16 +0000</pubDate>
					<dc:creator>timewarp23</dc:creator>

					<description>
						<![CDATA[
						<p>fantastic! thanks!<br />
What was the code change?  I like to keep records for the future.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/link-to-specific-tabs/#post-197311</guid>
					<title><![CDATA[Reply To: link to specific tabs]]></title>
					<link>https://theme.co/archive/forums/topic/link-to-specific-tabs/#post-197311</link>
					<pubDate>Mon, 02 Feb 2015 16:17:02 +0000</pubDate>
					<dc:creator>Zeshan</dc:creator>

					<description>
						<![CDATA[
						<p>You&#8217;re welcome! 🙂</p>
<p>The updated code is:</p>
<pre><code>jQuery( function($){ 
$( document ).ready( function(){
scroll_to_tab ( location.href.split(&quot;#&quot;).slice(-1)[0] );
});

$(&#039;a.link_to_tab, .link_to_tab a&#039;).on( &#039;click&#039;, function( e ){
var window_base = location.href.split(&quot;#&quot;).slice(0)[0];
var url_base = $( this ).attr(&#039;href&#039;).split(&quot;#&quot;).slice(0)[0];	 
if ( window_base == url_base ) {
scroll_to_tab ( $( this ).attr(&#039;href&#039;).split(&quot;#&quot;).slice(-1)[0] );
e.preventDefault();
}

});

function scroll_to_tab ( tab_id ) {
var tab_nav = $(&#039;.x-nav-tabs .x-nav-tabs-item a[href=&quot;#&#039; + tab_id + &#039;&quot;]&#039;);
if(tab_nav.length &gt;=1) {
$( tab_nav ).trigger(&#039;click&#039;);
$(&#039;html,body&#039;).animate({scrollTop: $(tab_nav).offset().top - ( $(&#039;.x-navbar&#039;).height() + 50 ) },700 ,&#039;swing&#039;);}
}
});
</code></pre>
<p>Cheers!</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/link-to-specific-tabs/#post-234222</guid>
					<title><![CDATA[Reply To: link to specific tabs]]></title>
					<link>https://theme.co/archive/forums/topic/link-to-specific-tabs/#post-234222</link>
					<pubDate>Tue, 24 Mar 2015 18:11:43 +0000</pubDate>
					<dc:creator>jozhica</dc:creator>

					<description>
						<![CDATA[
						<p>Following on this topic how do I link to a specific tab from the other tab content?</p>
<p>I need a &#8220;Book&#8221; that is located in every tab content link to got to Book tab which is #tab-5 on the same page.</p>
<p>[tab_nav type=&#8221;seven-up&#8221;]<br />
[tab_nav_item title=&#8221;Overview&#8221; active=&#8221;true&#8221;]<br />
[tab_nav_item title=&#8221;Itinerary&#8221; active=&#8221;&#8221;]<br />
[tab_nav_item title=&#8221;Inclusion&#8221; active=&#8221;&#8221;]<br />
[tab_nav_item title=&#8221;Dates/Prices&#8221; active=&#8221;&#8221;]<br />
[tab_nav_item title=&#8221;Book&#8221; active=&#8221;&#8221;]<br />
[tab_nav_item title=&#8221;Contact Us&#8221; active=&#8221;&#8221;]<br />
[tab_nav_item title=&#8221;Reviews&#8221; active=&#8221;&#8221;]<br />
[/tab_nav]<br />
[tabs]</p>
<p>[tab] Content Overview<br />
[button shape=&#8221;square&#8221; size=&#8221;mini&#8221; float=&#8221;none&#8221; info=&#8221;none&#8221; info_place=&#8221;top&#8221; info_trigger=&#8221;hover&#8221; href=&#8221;#tab-5&#8243;]Book[/button]<br />
[/tab]</p>
<p>[tab] Content Itinerary<br />
[button shape=&#8221;square&#8221; size=&#8221;mini&#8221; float=&#8221;none&#8221; info=&#8221;none&#8221; info_place=&#8221;top&#8221; info_trigger=&#8221;hover&#8221; href=&#8221;#tab-5&#8243;]Book[/button]<br />
[/tab]</p>
<p>This is what I have but the tab is not opening.<br />
When I click on the button the url shows the full link &#8230;/portfolio/test/#tab-5 but the tab doesn&#8217;t change.</p>
						]]>
					</description>

					
					
				</item>

					
		
	</channel>
	</rss>

