Forum Replies Created
-
AuthorPosts
-
bruceclancyMember
After spending a lot of time reviewing the info at http://www.billerickson.net/genesis-wordpress-nav-menu-content/ which is quite complicated, at least for me, I accomplished my objective with the code below. The finished results can be viewed at http://moldtestingdenver.net
Add to functions.php
/** Modify the right side(extras) of the navigation menu */
add_filter( 'genesis_nav_items', 'be_follow_icons', 10, 2 );
add_filter( 'wp_nav_menu_items', 'be_follow_icons', 10, 2 );
/**
* Follow Icons in Menu
* @author Bill Erickson
* @link http://www.billerickson.net/genesis-wordpress-nav-menu-content/
*
* @param string $menu
* @param array $args
* @return string
*/
function be_follow_icons($menu, $args) {
if ( 'primary' !== $args->theme_location )
return $menu;
$follow = '<li id="follow"> We Guarantee Your Satisfaction</li>';
return $menu . $follow;
}Add to css.php just below
/* Primary Navigation Extras
------------------------------------------------------------ *//** Modify the right side(extras) of the navigation menu */
#nav li#follow{
float:right;
padding: 9px 16px 0 0;
font-size: 20px;
font-weight:bold;
color: #48B708;
}
Thanks to Jennifer Baumann for sending me back for a second look.Bruce
-
AuthorPosts