I have a primary menu registered and displayed that consists of 4 links (home, about, news, blog). I want to add html (a logo) in between the second and third menu and I was
function add_admin_link($items, $args){ if( $args->menu_id == 'header_menu' ){ $items .= 'Paste the text or code here'; } return $items; } add_filter('wp_nav_menu_items', 'add_admin_link',20,2);