'Top Menu', )); register_nav_menus( array( 'footer-menu' => 'Footer Menu', )); } add_action('init', 'childtheme_register_menu'); add_theme_support( 'post-thumbnails'); add_filter( 'wp_nav_menu_items', 'add_last_item_to_nav', 10, 2 ); function add_last_item_to_nav( $items, $args ) { $custom_arg = esc_attr( $args->walker_arg ); if($custom_arg == "top") { $items .= ''; } return $items; } class Menu_Walker extends Walker_Nav_Menu { /* Start of the