<?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: Home link in nav not working</title>
<link>http://themeshaper.com/forums/</link>
<description>Help In Shaping WordPress Themes</description>
<language>en</language>
<pubDate>Fri, 24 May 2013 17:47:06 +0000</pubDate>

<item>
<title>DorinChill on "Home link in nav not working"</title>
<link>http://themeshaper.com/forums/topic/home-link-in-nav-not-working#post-21835</link>
<pubDate>Sun, 12 Jun 2011 15:03:23 +0000</pubDate>
<dc:creator>DorinChill</dc:creator>
<guid isPermaLink="false">21835@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;it works but it ruins its aspect...thei look like a list now...
&#60;/p&#62;</description>
</item>
<item>
<title>Ian Stewart on "Home link in nav not working"</title>
<link>http://themeshaper.com/forums/topic/home-link-in-nav-not-working#post-1763</link>
<pubDate>Sat, 21 Feb 2009 03:34:34 +0000</pubDate>
<dc:creator>Ian Stewart</dc:creator>
<guid isPermaLink="false">1763@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;I've made an updated solution for this: &#60;a href=&#34;http://themeshaper.com/forums/topic/how-to-add-a-home-link-to-your-child-theme-menu&#34; rel=&#34;nofollow&#34;&#62;http://themeshaper.com/forums/topic/how-to-add-a-home-link-to-your-child-theme-menu&#60;/a&#62;
&#60;/p&#62;</description>
</item>
<item>
<title>hoopeys on "Home link in nav not working"</title>
<link>http://themeshaper.com/forums/topic/home-link-in-nav-not-working#post-1700</link>
<pubDate>Thu, 12 Feb 2009 14:32:04 +0000</pubDate>
<dc:creator>hoopeys</dc:creator>
<guid isPermaLink="false">1700@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Anthrax - thanks much that added the Home button to the menu.  I noticed that when I made the change it removed all stylings for the menu class, because in the functions.php code, the div has id=menu rather than class=menu.  I corrected the code and it works great now!  Here's the updated code for those interested:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php
// Adds Home link to navgation
function sample_menu() {
    $menu = &#38;#39;&#38;lt;div class=&#38;quot;menu&#38;quot;&#38;gt;&#38;lt;ul&#38;gt;&#38;#39;;
    if ( is_home() ) {
        $menu .= &#38;#39;&#38;lt;li class=&#38;quot;current_page_item&#38;quot;&#38;gt;&#38;lt;a href=&#38;quot;&#38;#39;;
    }
    else {
         $menu .= &#38;#39;&#38;lt;li&#38;gt;&#38;lt;a href=&#38;quot;&#38;#39;;
    }
    $menu .= get_option(&#38;#39;home&#38;#39;) . &#38;#39;/&#38;quot; title=&#38;quot;Home&#38;quot;&#38;gt;Home&#38;lt;/a&#38;gt;&#38;lt;/li&#38;gt;&#38;#39;;
    $menu .= str_replace( array( &#38;quot;\r&#38;quot;, &#38;quot;\n&#38;quot;, &#38;quot;\t&#38;quot; ), &#38;#39;&#38;#39;, wp_list_pages(&#38;#39;title_li=&#38;#38;sort_column=menu_order&#38;#38;echo=0&#38;#39;) );
    $menu .= &#38;quot;&#38;lt;/ul&#38;gt;&#38;lt;/div&#38;gt;\n&#38;quot;;
    echo $menu;
}
add_filter(&#38;#39;wp_page_menu&#38;#39;, &#38;#39;sample_menu&#38;#39; );

?&#38;gt;&#60;/code&#62;&#60;/pre&#62;</description>
</item>
<item>
<title>Anthrax on "Home link in nav not working"</title>
<link>http://themeshaper.com/forums/topic/home-link-in-nav-not-working#post-1696</link>
<pubDate>Thu, 12 Feb 2009 06:58:37 +0000</pubDate>
<dc:creator>Anthrax</dc:creator>
<guid isPermaLink="false">1696@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Change&#60;br /&#62;
&#34;add_filter('globalnav_menu', 'sample_menu' ); &#34;&#60;br /&#62;
in&#60;br /&#62;
&#34;add_filter('wp_page_menu', 'sample_menu' ); &#34;&#60;/p&#62;
&#60;p&#62;that works fine !
&#60;/p&#62;</description>
</item>
<item>
<title>hoopeys on "Home link in nav not working"</title>
<link>http://themeshaper.com/forums/topic/home-link-in-nav-not-working#post-1695</link>
<pubDate>Thu, 12 Feb 2009 05:39:44 +0000</pubDate>
<dc:creator>hoopeys</dc:creator>
<guid isPermaLink="false">1695@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Hi there, I'm new to WordPress and Thematic, but liking it a lot so far.  I'm struggling with adding the home button to the main navigation bar.  I've looked through the tutorials and forum posts on it and it looks like I should have everything I need, but it is still not working.  Maybe I missed something... here's the code from my functions.php file in my child theme:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php
// Adds Home link to navigation
function sample_menu() {
    $menu = &#38;#39;&#38;lt;div id=&#38;quot;menu&#38;quot;&#38;gt;&#38;lt;ul&#38;gt;&#38;#39;;
    if ( is_home() ) {
        $menu .= &#38;#39;&#38;lt;li class=&#38;quot;current_page_item&#38;quot;&#38;gt;&#38;lt;a href=&#38;quot;&#38;#39;;
    }
    else {
         $menu .= &#38;#39;&#38;lt;li&#38;gt;&#38;lt;a href=&#38;quot;&#38;#39;;
    }
    $menu .= get_option(&#38;#39;home&#38;#39;) . &#38;#39;/&#38;quot; title=&#38;quot;Home&#38;quot;&#38;gt;Home&#38;lt;/a&#38;gt;&#38;lt;/li&#38;gt;&#38;#39;;
    $menu .= str_replace( array( &#38;quot;\r&#38;quot;, &#38;quot;\n&#38;quot;, &#38;quot;\t&#38;quot; ), &#38;#39;&#38;#39;, wp_list_pages(&#38;#39;title_li=&#38;#38;sort_column=menu_order&#38;#38;echo=0&#38;#39;) );
    $menu .= &#38;quot;&#38;lt;/ul&#38;gt;&#38;lt;/div&#38;gt;\n&#38;quot;;
    echo $menu;
}
add_filter(&#38;#39;globalnav_menu&#38;#39;, &#38;#39;sample_menu&#38;#39; );
?&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Any ideas?  Thanks in advance for the help.
&#60;/p&#62;</description>
</item>

</channel>
</rss>
