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:
<?php
// Adds Home link to navigation
function sample_menu() {
$menu = '<div id="menu"><ul>';
if ( is_home() ) {
$menu .= '<li class="current_page_item"><a href="';
}
else {
$menu .= '<li><a href="';
}
$menu .= get_option('home') . '/" title="Home">Home</a></li>';
$menu .= str_replace( array( "\r", "\n", "\t" ), '', wp_list_pages('title_li=&sort_column=menu_order&echo=0') );
$menu .= "</ul></div>\n";
echo $menu;
}
add_filter('globalnav_menu', 'sample_menu' );
?>
Any ideas? Thanks in advance for the help.