<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: How to remove the link to parent pages when using wp_list_pages in WordPress navigation</title>
	<atom:link href="http://wpgarage.com/code-snippets/how-to-remove-the-link-to-parent-pages-when-using-wp_list_pages-in-wordpress-navigation/feed/" rel="self" type="application/rss+xml" />
	<link>http://wpgarage.com/code-snippets/how-to-remove-the-link-to-parent-pages-when-using-wp_list_pages-in-wordpress-navigation/</link>
	<description>wordpress tricks, hacks, and tips</description>
	<lastBuildDate>Wed, 09 May 2012 06:53:59 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>By: Jenny</title>
		<link>http://wpgarage.com/code-snippets/how-to-remove-the-link-to-parent-pages-when-using-wp_list_pages-in-wordpress-navigation/#comment-62754</link>
		<dc:creator>Jenny</dc:creator>
		<pubDate>Sat, 17 Sep 2011 13:36:50 +0000</pubDate>
		<guid isPermaLink="false">?p=810#comment-62754</guid>
		<description>After many hours of searching, I found an easy solution in wordpress support :
&lt;a href=&quot;http://en.support.wordpress.com/menus/&quot; rel=&quot;nofollow&quot;&gt;http://en.support.wordpress.com/menus/&lt;/a&gt;

Scroll down to the &quot;Adding Static Top-Level Tabs&quot; heading for a complete description. 

Go to your Menus page (Appearance &gt; Menus)
Add a Custom Link and set the URL as &lt;strong&gt;#&lt;/strong&gt;. Using &lt;strong&gt;#&lt;/strong&gt; will prevent the page from refreshing when you select the tab.
Label your link and hit the “Add to Menu” button.
Organize your menu items like you would normally do, hit the “Save Menu” button, and you’re done!
</description>
		<content:encoded><![CDATA[<p>After many hours of searching, I found an easy solution in wordpress support :<br />
<a href="http://en.support.wordpress.com/menus/" rel="nofollow">http://en.support.wordpress.com/menus/</a></p>
<p>Scroll down to the &#8220;Adding Static Top-Level Tabs&#8221; heading for a complete description. </p>
<p>Go to your Menus page (Appearance &gt; Menus)<br />
Add a Custom Link and set the URL as <strong>#</strong>. Using <strong>#</strong> will prevent the page from refreshing when you select the tab.<br />
Label your link and hit the “Add to Menu” button.<br />
Organize your menu items like you would normally do, hit the “Save Menu” button, and you’re done!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stephen</title>
		<link>http://wpgarage.com/code-snippets/how-to-remove-the-link-to-parent-pages-when-using-wp_list_pages-in-wordpress-navigation/#comment-62710</link>
		<dc:creator>Stephen</dc:creator>
		<pubDate>Fri, 05 Aug 2011 11:26:20 +0000</pubDate>
		<guid isPermaLink="false">?p=810#comment-62710</guid>
		<description>The new Wordpress has a function called &quot;show as seperator in menu&quot; on the page menu options. Cool function and does the job of un-linkg parent pages.</description>
		<content:encoded><![CDATA[<p>The new WordPress has a function called &#8220;show as seperator in menu&#8221; on the page menu options. Cool function and does the job of un-linkg parent pages.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gustaw</title>
		<link>http://wpgarage.com/code-snippets/how-to-remove-the-link-to-parent-pages-when-using-wp_list_pages-in-wordpress-navigation/#comment-62389</link>
		<dc:creator>Gustaw</dc:creator>
		<pubDate>Sun, 22 May 2011 19:27:57 +0000</pubDate>
		<guid isPermaLink="false">?p=810#comment-62389</guid>
		<description>Insert in header.php this script
 
&lt;script type=&quot;text/javascript&quot;&gt;
jQuery(function($) {
$(&#039;ul.children&#039;).parent().find(&#039;a:first&#039;).removeAttr(&#039;href&#039;);
});
&lt;/script&gt;</description>
		<content:encoded><![CDATA[<p>Insert in header.php this script<br />
 <br />
&lt;script type=&#8221;text/javascript&#8221;&gt;<br />
jQuery(function($) {<br />
$(&#8216;ul.children&#8217;).parent().find(&#8216;a:first&#8217;).removeAttr(&#8216;href&#8217;);<br />
});<br />
&lt;/script&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Josh T</title>
		<link>http://wpgarage.com/code-snippets/how-to-remove-the-link-to-parent-pages-when-using-wp_list_pages-in-wordpress-navigation/#comment-62387</link>
		<dc:creator>Josh T</dc:creator>
		<pubDate>Tue, 17 May 2011 06:06:34 +0000</pubDate>
		<guid isPermaLink="false">?p=810#comment-62387</guid>
		<description>Wow Tony.. you my man are a genius. No need for plugins or code or all that crap. The internet makes it so hard yet you made it soooo simple. wow!</description>
		<content:encoded><![CDATA[<p>Wow Tony.. you my man are a genius. No need for plugins or code or all that crap. The internet makes it so hard yet you made it soooo simple. wow!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Elena</title>
		<link>http://wpgarage.com/code-snippets/how-to-remove-the-link-to-parent-pages-when-using-wp_list_pages-in-wordpress-navigation/#comment-62215</link>
		<dc:creator>Elena</dc:creator>
		<pubDate>Mon, 14 Mar 2011 15:42:17 +0000</pubDate>
		<guid isPermaLink="false">?p=810#comment-62215</guid>
		<description>Thank you Peter.
Namaste</description>
		<content:encoded><![CDATA[<p>Thank you Peter.<br />
Namaste</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter</title>
		<link>http://wpgarage.com/code-snippets/how-to-remove-the-link-to-parent-pages-when-using-wp_list_pages-in-wordpress-navigation/#comment-62193</link>
		<dc:creator>Peter</dc:creator>
		<pubDate>Fri, 04 Mar 2011 00:30:57 +0000</pubDate>
		<guid isPermaLink="false">?p=810#comment-62193</guid>
		<description>Again without knowing your theme I will take a long shot here, but you could copy and paste the entire css rule so it appears twice, one with cursor: pointer; and the other with cursor: auto; and perhaps precede the second copied rule with .cursorauto like this:
 
.yourexistingmenu {
cursor: pointer;
blah: blah;
}
/*above menu copied below*/
.cursorauto .yourexistingmenu {
cursor: auto;
blah: blah;
}
 
and then in the php file where the menu (that you want to modify) exists in the php code, wrap that code in divs, like this:
&lt;div class=&quot;cursorauto&quot;&gt;
(code the creates the menu you want to modify)
&lt;/div&gt;
this is the general &quot;gist&quot; but without knowing your theme in detail I cant account for any &quot;ifs&quot; or &quot;buts&quot; in how your theme is coded.
 </description>
		<content:encoded><![CDATA[<p>Again without knowing your theme I will take a long shot here, but you could copy and paste the entire css rule so it appears twice, one with cursor: pointer; and the other with cursor: auto; and perhaps precede the second copied rule with .cursorauto like this:<br />
 <br />
.yourexistingmenu {<br />
cursor: pointer;<br />
blah: blah;<br />
}<br />
/*above menu copied below*/<br />
.cursorauto .yourexistingmenu {<br />
cursor: auto;<br />
blah: blah;<br />
}<br />
 <br />
and then in the php file where the menu (that you want to modify) exists in the php code, wrap that code in divs, like this:<br />
&lt;div class=&#8221;cursorauto&#8221;&gt;<br />
(code the creates the menu you want to modify)<br />
&lt;/div&gt;<br />
this is the general &#8220;gist&#8221; but without knowing your theme in detail I cant account for any &#8220;ifs&#8221; or &#8220;buts&#8221; in how your theme is coded.<br />
 </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Elena</title>
		<link>http://wpgarage.com/code-snippets/how-to-remove-the-link-to-parent-pages-when-using-wp_list_pages-in-wordpress-navigation/#comment-62192</link>
		<dc:creator>Elena</dc:creator>
		<pubDate>Thu, 03 Mar 2011 23:10:40 +0000</pubDate>
		<guid isPermaLink="false">?p=810#comment-62192</guid>
		<description>Thank you Peter for your respond, your solution works, but what I have to do if I would like deactivate a specific menu?
Elena</description>
		<content:encoded><![CDATA[<p>Thank you Peter for your respond, your solution works, but what I have to do if I would like deactivate a specific menu?<br />
Elena</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter</title>
		<link>http://wpgarage.com/code-snippets/how-to-remove-the-link-to-parent-pages-when-using-wp_list_pages-in-wordpress-navigation/#comment-62190</link>
		<dc:creator>Peter</dc:creator>
		<pubDate>Wed, 02 Mar 2011 23:21:23 +0000</pubDate>
		<guid isPermaLink="false">?p=810#comment-62190</guid>
		<description>@Elena,
 
this would involve a css change, and would vary depending on your theme, but using firebug addon for firefox you can hover over the parent menu item to find that part of the css that says:
cursor: pointer;
which needs to become
cursor: auto;
I was able to do so without affecting other menu items that did not have children but without knowing any more about your theme I cannot say. Good luck!
 
 </description>
		<content:encoded><![CDATA[<p>@Elena,<br />
 <br />
this would involve a css change, and would vary depending on your theme, but using firebug addon for firefox you can hover over the parent menu item to find that part of the css that says:<br />
cursor: pointer;<br />
which needs to become<br />
cursor: auto;<br />
I was able to do so without affecting other menu items that did not have children but without knowing any more about your theme I cannot say. Good luck!<br />
 <br />
 </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Elena</title>
		<link>http://wpgarage.com/code-snippets/how-to-remove-the-link-to-parent-pages-when-using-wp_list_pages-in-wordpress-navigation/#comment-62189</link>
		<dc:creator>Elena</dc:creator>
		<pubDate>Wed, 02 Mar 2011 20:57:24 +0000</pubDate>
		<guid isPermaLink="false">?p=810#comment-62189</guid>
		<description>Hi, please can somebody tell me if Mouse will change over the link. I mean the hand symbol, I would like to unlink parent menue and I would like that the mouse didn&#039;t change and people think that there is a link. Thank you very much for a respond. Please help me this issue makes me crazy. Lovely Elena</description>
		<content:encoded><![CDATA[<p>Hi, please can somebody tell me if Mouse will change over the link. I mean the hand symbol, I would like to unlink parent menue and I would like that the mouse didn&#8217;t change and people think that there is a link. Thank you very much for a respond. Please help me this issue makes me crazy. Lovely Elena</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Miriam Schwab</title>
		<link>http://wpgarage.com/code-snippets/how-to-remove-the-link-to-parent-pages-when-using-wp_list_pages-in-wordpress-navigation/#comment-62180</link>
		<dc:creator>Miriam Schwab</dc:creator>
		<pubDate>Thu, 24 Feb 2011 21:11:14 +0000</pubDate>
		<guid isPermaLink="false">?p=810#comment-62180</guid>
		<description>@Peter that&#039;s a great tip! Thanks for sharing.</description>
		<content:encoded><![CDATA[<p>@Peter that&#8217;s a great tip! Thanks for sharing.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

