<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.2" -->
<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">
	<channel>
		<title>Support Forum - Topic: Remove Sub-Navigation Widget</title>
		<link>http://www.kriesi.at/support/topic/remove-sub-navigation-widget</link>
		<description>Support Forum - Topic: Remove Sub-Navigation Widget</description>
		<language>en-US</language>
		<pubDate>Sun, 19 May 2013 16:27:00 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.2</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://www.kriesi.at/support/search.php</link>
		</textInput>
		<atom:link href="http://www.kriesi.at/support/rss/topic/remove-sub-navigation-widget" rel="self" type="application/rss+xml" />

		<item>
			<title>Dude on "Remove Sub-Navigation Widget"</title>
			<link>http://www.kriesi.at/support/topic/remove-sub-navigation-widget#post-20132</link>
			<pubDate>Mon, 30 May 2011 04:55:36 +0000</pubDate>
			<dc:creator>Dude</dc:creator>
			<guid isPermaLink="false">20132@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hey,&#60;br /&#62;
in sidebar.php replace the code you posted above:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;div class=&#38;#39;box box_small box3&#38;#39; id=&#38;#39;sidebar&#38;#39; &#38;gt;
&#38;lt;?php
if($post-&#38;gt;post_parent)
  $children = wp_list_pages(&#38;quot;title_li=&#38;amp;sort_column=menu_order&#38;amp;child_of=&#38;quot;.$post-&#38;gt;post_parent.&#38;quot;&#38;amp;echo=0&#38;quot;);
  else
  $children = wp_list_pages(&#38;quot;title_li=&#38;amp;sort_column=menu_order&#38;amp;child_of=&#38;quot;.$post-&#38;gt;ID.&#38;quot;&#38;amp;echo=0&#38;quot;);
  if ($children) { ?&#38;gt;
  &#38;lt;div class=&#38;quot;widget widget_pages&#38;quot;&#38;gt;

  &#38;lt;h3&#38;gt;Sub-Navigation&#38;lt;/h3&#38;gt;
  &#38;lt;ul&#38;gt;
  &#38;lt;?php echo $children; ?&#38;gt;
  &#38;lt;/ul&#38;gt;
  &#38;lt;/div&#38;gt;
  &#38;lt;?php }&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;with:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;All other widget areas should display correct now.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>NigelLew on "Remove Sub-Navigation Widget"</title>
			<link>http://www.kriesi.at/support/topic/remove-sub-navigation-widget#post-20114</link>
			<pubDate>Sun, 29 May 2011 22:25:52 +0000</pubDate>
			<dc:creator>NigelLew</dc:creator>
			<guid isPermaLink="false">20114@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hi, I am finally getting around to getting my site done.   I would like to remove the sub-navigation widget and use widget logic to populate sidebars and use things like &#34;my page order&#34; instead.&#60;/p&#62;
&#60;p&#62;When I follow your instructions from theme forest it removes all of my widgets, not just the hardcoded sub-navigation widget.&#60;/p&#62;
&#60;p&#62;&#34;you can either get rid of sidebar.phps line 36-49 to remove the menu&#34;   This what is causing all widgets to go away.&#60;/p&#62;
&#60;p&#62;Line 36-49 for me as follows:&#60;/p&#62;
&#60;p&#62;&#38;lt;?php&#60;br /&#62;
if($post-&#38;gt;post_parent)&#60;br /&#62;
  $children = wp_list_pages(&#34;title_li=&#38;amp;sort_column=menu_order&#38;amp;child_of=&#34;.$post-&#38;gt;post_parent.&#34;&#38;amp;echo=0&#34;);&#60;br /&#62;
  else&#60;br /&#62;
  $children = wp_list_pages(&#34;title_li=&#38;amp;sort_column=menu_order&#38;amp;child_of=&#34;.$post-&#38;gt;ID.&#34;&#38;amp;echo=0&#34;);&#60;br /&#62;
  if ($children) { ?&#38;gt;&#60;br /&#62;
  &#38;lt;div class=&#34;widget widget_pages&#34;&#38;gt;&#60;/p&#62;
&#60;p&#62;  &#38;lt;h3&#38;gt;Sub-Navigation&#38;lt;/h3&#38;gt;&#60;/p&#62;
&#60;ul&#62;
  &#38;lt;?php echo $children; ?&#38;gt;
  &#60;/ul&#62;
&#60;p&#62;  &#38;lt;/div&#38;gt;&#60;br /&#62;
  &#38;lt;?php }&#60;/p&#62;
&#60;p&#62;thanks,&#60;br /&#62;
Nigel
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
