I want to add external links to my page nav, and I also want to change the anchor text for "Home" to "Blog Home." Its Hybrid News.
So I need to add 2 filters to functions.php, as per:
http://themehybrid.com/themes/hybrid/navigation#custom-page
I can add one filter, or the other filter, but not both. I am guessing I am not combining the two filters properly, or something. But my trial and error has only led to errors so far.
The code (which gets error messages) looks like this:
<?php
add_filter('wp_page_menu', 'custom_page_nav');
function custom_page_nav($menu) {
$menu = false;
$menu = '<div id="page-nav"><ul>';
$menu .= '<li><a href="http://www.findportablesolarpower.com" title="Solar Power Main Site Home Page ">Site Home</a></li>';
$menu .= wp_list_pages('title_li=&depth=1&echo=0');
$menu .= '<li><a href="http://www.findportablesolarpower.com/store/" title="Solar Power Store">Solar Power Store</a></li>';
$menu .= '</ul></div>';
return $menu;
}
add_filter('wp_page_menu_args', 'custom_page_nav');
function custom_page_nav($args) {
$args = array(
'show_home' => __('Blog Home','hybrid'),
'menu_class' => 'page-nav',
'depth' => 1,
);
return $args;
}
/**
* This is your child theme's functions.php file.
* You should make edits and add additional code above this point.
* Only change the functions below if you know what you're doing.
*/
/********************************************************/
Any suggestions?