Remove LI Elements From Output of wp_nav_menu

remove li elements from wordpress nav menu
language: PHP
license: Other

Code for Snippet:

    $defaults = array(
    'theme_location'  => 'my-menu',
    'container'       => 'nav', 
    'container_class' => 'menu', 
    'echo'            => false,
    'fallback_cb'     => false,
    'items_wrap'      => '%3$s',
    'depth'           => 0
    echo strip_tags(wp_nav_menu( $defaults ), '<nav><a>');
comments powered by Disqus


Tags: Wordpress

Link to this snippet:

Download to Code Collector

To use the direct link to your snippet on either copy the html from the above section or drag the Download to Code Collector to where you would like to use it.

More Info:

Times Viewed: 1558
Date Added: 2013-03-08 15:06:38
Last Modified: 2013-03-15 10:23:00

Web Analytics