Remove first separator in wp_nav_menu
If all you’re attempting to do is add a separator between links you’d be better off just scrapping what you have and do this: Create a new menu in the WP backend. Add your pages/links and save the menu. Then just use <?php wp_nav_menu( array(‘menu’ => ‘Name of Menu Here’ )); ?> to display your … Read more