Custom menu including also primary menu items

In my function: register_nav_menus( array( ‘menu-1’ => esc_html__( ‘Primary’, ‘mySite’ ), ‘menu-2’ => esc_html__( ‘Secondary Menu’, ‘mySite’ ), ) ); And then in my header to display the menu: <?php wp_nav_menu( array( ‘theme_location’ => ‘menu-1’, ‘menu_id’ => ‘primary-menu’, ) ); ?>

insert div into a menu item before the link and more

I overslept and came to a completely different solution with the same visual outcome. It simply doesn’t use additional div in the li elements and p elements in the a element. The jsfiddle shows the solution thanks to the Keith J. Grant’s idea I encountered. So instead of WordPress I honed a bit my CSS … Read more