<?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>how to create one page navigation on submenu of main menu &#8211; Themeco Community</title>
		<atom:link href="https://theme.co/archive/forums/topic/how-to-create-one-page-navigation-on-submenu-of-main-menu/feed/" rel="self" type="application/rss+xml" />
		<link>https://theme.co/archive/forums/topic/how-to-create-one-page-navigation-on-submenu-of-main-menu/feed/</link>
		<description></description>
		<lastBuildDate>Thu, 25 Dec 2025 22:25:09 +0000</lastBuildDate>
		<generator>https://bbpress.org/?v=2.6.14</generator>
		<language>en-US</language>

		
														
					
				<item>
					<guid>https://theme.co/archive/forums/topic/how-to-create-one-page-navigation-on-submenu-of-main-menu/#post-205209</guid>
					<title><![CDATA[how to create one page navigation on submenu of main menu]]></title>
					<link>https://theme.co/archive/forums/topic/how-to-create-one-page-navigation-on-submenu-of-main-menu/#post-205209</link>
					<pubDate>Thu, 12 Feb 2015 20:03:45 +0000</pubDate>
					<dc:creator>drules</dc:creator>

					<description>
						<![CDATA[
						<p>Hi there,<br />
I need some help with adding an anchor page link on the submenu of the main menu. I don&#8217;t want to redirect the user to another menu. It works fine there. How do I stay on the main menu and create an anchor page link on the submenu.</p>
<p>I have created the links in Visual Composer and they work fine when I am redirected to a completely different menu for that page because I have selected the menu under One Page Navigation.<br />
<a href="http://www.innovationculturegroup.com/clients/services-vc/" rel="nofollow">http://www.innovationculturegroup.com/clients/services-vc/</a></p>
<p>However this is where I want it to appear on the main menu. When I click on the submenu item of Innovation Focused Cultures the link goes nowhere. It should jump to the anchor text on the Services-VC page.<br />
<a href="http://www.innovationculturegroup.com/" rel="nofollow">http://www.innovationculturegroup.com/</a></p>
<p>This is really good template, I&#8217;m just stuck.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/how-to-create-one-page-navigation-on-submenu-of-main-menu/#post-205817</guid>
					<title><![CDATA[Reply To: how to create one page navigation on submenu of main menu]]></title>
					<link>https://theme.co/archive/forums/topic/how-to-create-one-page-navigation-on-submenu-of-main-menu/#post-205817</link>
					<pubDate>Fri, 13 Feb 2015 12:13:45 +0000</pubDate>
					<dc:creator>Senthil</dc:creator>

					<description>
						<![CDATA[
						<p>Hi There,</p>
<p>Thanks for writing in! </p>
<p>We can see that the sub-menu navigation is working fine and pointing the services page and jumping to the right section too.<br />
We hope you made it work already.</p>
<p>If not, kindly let us know with the browser name &amp; version you&#8217;re viewing.<br />
So we can take a closer look and help you to get it fixed.</p>
<p>Thanks!</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/how-to-create-one-page-navigation-on-submenu-of-main-menu/#post-206162</guid>
					<title><![CDATA[Reply To: how to create one page navigation on submenu of main menu]]></title>
					<link>https://theme.co/archive/forums/topic/how-to-create-one-page-navigation-on-submenu-of-main-menu/#post-206162</link>
					<pubDate>Fri, 13 Feb 2015 22:09:27 +0000</pubDate>
					<dc:creator>drules</dc:creator>

					<description>
						<![CDATA[
						<p>Yes, I found the answer from a forum response that told me to copy and paste this javascript code below into the custom area. Suddenly the links started working. On the Services page, I then linked the one page navigation to the main menu. Thank you guys for all your help on my recent posts.</p>
<p><a href="https://theme.co/x/member/forums/topic/page-links-using-ids/page/2/#post-98964" rel="nofollow">https://theme.co/x/member/forums/topic/page-links-using-ids/page/2/#post-98964</a></p>
<p>// Conditions<br />
// 1. Menu should be using full url, eg. <a href="http://site.com/#x-content-band-1" rel="nofollow">http://site.com/#x-content-band-1</a> and not just #x-content-band-1<br />
// 2. Use just one menu for both Primary and One Page.</p>
<p>jQuery(function($){</p>
<p>	var window_base = window.location.href.split(&#8220;#&#8221;).slice(0)[0];<br />
	var window_hash = window.location.hash == &#8221; ? &#8216;body&#8217; : &#8216;#&#8217;+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 = /#/.test( $(this).attr(&#8216;href&#8217;) )  ? &#8216;#&#8217; + $(this).attr(&#8216;href&#8217;).split(&#8220;#&#8221;).slice(-1)[0] : &#8221;;<br />
		var anchor_base = /#/.test( $(this).attr(&#8216;href&#8217;) ) ? $(this).attr(&#8216;href&#8217;).split(&#8220;#&#8221;).slice(0)[0] : $(this).attr(&#8216;href&#8217;);</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;, 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 = /#/.test( $(this).</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/how-to-create-one-page-navigation-on-submenu-of-main-menu/#post-206748</guid>
					<title><![CDATA[Reply To: how to create one page navigation on submenu of main menu]]></title>
					<link>https://theme.co/archive/forums/topic/how-to-create-one-page-navigation-on-submenu-of-main-menu/#post-206748</link>
					<pubDate>Sat, 14 Feb 2015 22:46:29 +0000</pubDate>
					<dc:creator>Rad</dc:creator>

					<description>
						<![CDATA[
						<p>Okay cool, nice find 😉 cheers!</p>
						]]>
					</description>

					
					
				</item>

					
		
	</channel>
	</rss>

