<?xml version="1.0" encoding="UTF-8"?><!-- generator="bbPress" -->

<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>

<channel>
<title>ThemeShaper Forums Topic: How to get non-selectable top menu items when there is a sub-menu</title>
<link>http://themeshaper.com/forums/</link>
<description>Help In Shaping WordPress Themes</description>
<language>en</language>
<pubDate>Sat, 25 May 2013 12:27:15 +0000</pubDate>

<item>
<title>em hr on "How to get non-selectable top menu items when there is a sub-menu"</title>
<link>http://themeshaper.com/forums/topic/can-i-have-non-selectable-top-menus#post-14862</link>
<pubDate>Fri, 20 Aug 2010 06:03:51 +0000</pubDate>
<dc:creator>em hr</dc:creator>
<guid isPermaLink="false">14862@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;Sorry for the misinformation but using add_theme_support in this way is not advised&#60;/p&#62;
&#60;p&#62;ref: &#60;a href=&#34;http://themeshaper.com/forums/topic/add_theme_supportmenus&#34; rel=&#34;nofollow&#34;&#62;http://themeshaper.com/forums/topic/add_theme_supportmenus&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;-Gene
&#60;/p&#62;</description>
</item>
<item>
<title>Jacques on "How to get non-selectable top menu items when there is a sub-menu"</title>
<link>http://themeshaper.com/forums/topic/can-i-have-non-selectable-top-menus#post-13576</link>
<pubDate>Thu, 01 Jul 2010 16:30:11 +0000</pubDate>
<dc:creator>Jacques</dc:creator>
<guid isPermaLink="false">13576@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Yes, it still doesn't work. With a new child theme with style.css having the basic series of import statements and functions.php being precisely:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php

// Use WP3 menu
add_theme_support( &#38;#39;menus&#38;#39; );
function child_access_menu() {
	$menu_sys = &#38;#39;wp_nav_menu&#38;#39;;
	return $menu_sys;
}
add_filter(&#38;#39;thematic_menu_type&#38;#39;, &#38;#39;child_access_menu&#38;#39;);

?&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;I can create a menu in the backend, it says my theme can use 0, and when I create it (only one) my website still shows the menu built out of the top pages.
&#60;/p&#62;</description>
</item>
<item>
<title>helgatheviking on "How to get non-selectable top menu items when there is a sub-menu"</title>
<link>http://themeshaper.com/forums/topic/can-i-have-non-selectable-top-menus#post-13523</link>
<pubDate>Tue, 29 Jun 2010 17:38:00 +0000</pubDate>
<dc:creator>helgatheviking</dc:creator>
<guid isPermaLink="false">13523@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;oops sorry.  'gene' is indeed 'em_hr'.  any time you see a post by him you should pay attention b/c you will probably learn something cool.  &#60;/p&#62;
&#60;p&#62;are you still having issues w/ this?  on my local install i just dropped in a gene's snippet to a new theme i am working on and it works fine.  the menus panel says my theme supports 0 menus, but w/ this  snippet thematic should (does for me) automatically replace the pages menu w/ the first custom menu.  do you have more than 1 menu created in WP?  &#60;/p&#62;
&#60;p&#62;and to post code you type it between 2 backwards tick marks `
&#60;/p&#62;</description>
</item>
<item>
<title>Jacques on "How to get non-selectable top menu items when there is a sub-menu"</title>
<link>http://themeshaper.com/forums/topic/can-i-have-non-selectable-top-menus#post-13489</link>
<pubDate>Mon, 28 Jun 2010 14:47:19 +0000</pubDate>
<dc:creator>Jacques</dc:creator>
<guid isPermaLink="false">13489@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Ah, I used&#60;/p&#62;
&#60;blockquote&#62;&#60;p&#62;add_action( 'init', 'register_my_menu' );&#60;/p&#62;
&#60;p&#62;function register_my_menu() {&#60;br /&#62;
	register_nav_menu( 'primary-menu', __( 'Primary Menu' ) );&#60;br /&#62;
}
&#60;/p&#62;&#60;/blockquote&#62;
&#60;p&#62;and now the theme locations box in the back end allows me to select my newly created menu. The menu still doesn't appear on the website though.
&#60;/p&#62;</description>
</item>
<item>
<title>Jacques on "How to get non-selectable top menu items when there is a sub-menu"</title>
<link>http://themeshaper.com/forums/topic/can-i-have-non-selectable-top-menus#post-13488</link>
<pubDate>Mon, 28 Jun 2010 14:42:34 +0000</pubDate>
<dc:creator>Jacques</dc:creator>
<guid isPermaLink="false">13488@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;PS: I've tried to use the code tags for the code snippet but only the first line appears as code.
&#60;/p&#62;</description>
</item>
<item>
<title>Jacques on "How to get non-selectable top menu items when there is a sub-menu"</title>
<link>http://themeshaper.com/forums/topic/can-i-have-non-selectable-top-menus#post-13487</link>
<pubDate>Mon, 28 Jun 2010 14:40:52 +0000</pubDate>
<dc:creator>Jacques</dc:creator>
<guid isPermaLink="false">13487@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Following helgatheviking's advice, and after figuring out that &#34;Gene&#34; was the poster called &#34;em hr&#34;, I've put&#60;/p&#62;
&#60;blockquote&#62;&#60;p&#62;
add_theme_support( 'menus' );&#60;/p&#62;
&#60;p&#62;function child_access_menu() {&#60;br /&#62;
	$menu_sys = 'wp_nav_menu';&#60;br /&#62;
	return $menu_sys;&#60;br /&#62;
}&#60;br /&#62;
add_filter('thematic_menu_type', 'child_access_menu');
&#60;/p&#62;&#60;/blockquote&#62;
&#60;p&#62;in functions.php.&#60;/p&#62;
&#60;p&#62;I can create a menu in WP3, but apparently something else is necessary to tell thematic to use it instead of the current one automatically built out of my pages?&#60;/p&#62;
&#60;p&#62;In the top left corner of the menu panel in the backend, it says that my theme can use 0 menu...
&#60;/p&#62;</description>
</item>
<item>
<title>Jacques on "How to get non-selectable top menu items when there is a sub-menu"</title>
<link>http://themeshaper.com/forums/topic/can-i-have-non-selectable-top-menus#post-13483</link>
<pubDate>Mon, 28 Jun 2010 08:36:16 +0000</pubDate>
<dc:creator>Jacques</dc:creator>
<guid isPermaLink="false">13483@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;No problem helgatheviking, thanks for insisting and providing more perspective and your link (I will read it for sure!).
&#60;/p&#62;</description>
</item>
<item>
<title>helgatheviking on "How to get non-selectable top menu items when there is a sub-menu"</title>
<link>http://themeshaper.com/forums/topic/can-i-have-non-selectable-top-menus#post-13454</link>
<pubDate>Sun, 27 Jun 2010 18:41:20 +0000</pubDate>
<dc:creator>helgatheviking</dc:creator>
<guid isPermaLink="false">13454@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;i don't mean to be a jerk, but it doesn't get much simpler than gene's code snippet in that first link.  if you don't know what you are doing, the best way to learn is by using tested code snippets, like Gene's.  this may be too much, but here is another very complete resource on 3.0 menus.&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://justintadlock.com/archives/2010/06/01/goodbye-headaches-hello-menus&#34; rel=&#34;nofollow&#34;&#62;http://justintadlock.com/archives/2010/06/01/goodbye-headaches-hello-menus&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;wordpress 3.0 is final and many people are implementing those menus in with thematic w/ no problem (myself included). from what i understand, thematic is not going to make that the default as it would break child themes built on the old thematic.
&#60;/p&#62;</description>
</item>
<item>
<title>Jacques on "How to get non-selectable top menu items when there is a sub-menu"</title>
<link>http://themeshaper.com/forums/topic/can-i-have-non-selectable-top-menus#post-13453</link>
<pubDate>Sun, 27 Jun 2010 18:31:43 +0000</pubDate>
<dc:creator>Jacques</dc:creator>
<guid isPermaLink="false">13453@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Thanks a lot. That seems a bit complicated for my current level of familiarity (actually it seems simple, but since I wouldn't know what I'm doing, I don't think I will take the risk). For now I will deal with the present situation and then when a stable release made for the WP3 menus is published I'll move to that. Thanks again.
&#60;/p&#62;</description>
</item>
<item>
<title>Devin on "How to get non-selectable top menu items when there is a sub-menu"</title>
<link>http://themeshaper.com/forums/topic/can-i-have-non-selectable-top-menus#post-13446</link>
<pubDate>Sun, 27 Jun 2010 17:14:23 +0000</pubDate>
<dc:creator>Devin</dc:creator>
<guid isPermaLink="false">13446@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;You could use the new menu function, and create dummy links for those items.  (e.g. the link is href=&#34;#&#34;).&#60;/p&#62;
&#60;p&#62;See this thread in the forum: &#60;a href=&#34;http://themeshaper.com/forums/topic/a-better-way-to-use-the-new-menu-in-wordpress-30-final-version#post-13219&#34; rel=&#34;nofollow&#34;&#62;http://themeshaper.com/forums/topic/a-better-way-to-use-the-new-menu-in-wordpress-30-final-version#post-13219&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Or I have a post on my site: &#60;a href=&#34;http://wptheming.com/2010/03/using-3-0-menu-navigation-with-thematic/&#34; rel=&#34;nofollow&#34;&#62;http://wptheming.com/2010/03/using-3-0-menu-navigation-with-thematic/&#60;/a&#62;
&#60;/p&#62;</description>
</item>
<item>
<title>Jacques on "How to get non-selectable top menu items when there is a sub-menu"</title>
<link>http://themeshaper.com/forums/topic/can-i-have-non-selectable-top-menus#post-13431</link>
<pubDate>Sun, 27 Jun 2010 00:06:42 +0000</pubDate>
<dc:creator>Jacques</dc:creator>
<guid isPermaLink="false">13431@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Hello,&#60;/p&#62;
&#60;p&#62;When a menu item has a sub-menu, I would like the top item to be non-selectable, i.e. I want no page corresponding to the top item, only the sub-menu.&#60;/p&#62;
&#60;p&#62;E.g. in the menu:&#60;/p&#62;
&#60;p&#62;Durations&#60;br /&#62;
Colors&#60;br /&#62;
- Red&#60;br /&#62;
- Blue&#60;br /&#62;
- Green&#60;br /&#62;
Sounds&#60;br /&#62;
Persons&#60;/p&#62;
&#60;p&#62;I want pages (and therefore selectable menu items) for Durations, Red, Blue, Green, Sounds, and Persons, but not for Colors.&#60;/p&#62;
&#60;p&#62;Any idea how I should go about this? Thanks.
&#60;/p&#62;</description>
</item>

</channel>
</rss>
