Snippets

WordPress security notes, code snippets, hosting advice and Gabfire theme news, written since 2008.

· Snippets

Remove li Elements From wp_nav_menu

WordPress will allow you to modify or remove the <ul> element from wp_nav_menu but that's it. You cannot remove the <li> items of the navigation by using the default parameters. Using a…