wp_nav_menu() before / after
-
I have been trying to add a before and after to the menu items to twentyten. I have tried
<?php wp_nav_menu( array( 'before' => '<span>', 'after' => '</span>', 'container_class' => 'menu-header', 'theme_location' => 'primary' ) ); ?>
and even hard coding in the nav-menu-template.php I have cleared my cache and made small changes to make sure it is updating, but nothing seems to work. Scratching my head. Anyone figured this out? is there a function filter to use? Or better a plugin that offers this functionality?
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘wp_nav_menu() before / after’ is closed to new replies.