Forums
Home / Themes and Templates / Using CSS Sliding Doors with wp_nav_menu?
(@dudemanthing)
13 years, 9 months ago
Hello!
Is there any way that I can use the wp_nav_menu function along with the CSS Sliding Doors technique to produce rounded corners?
I need to be able to insert a span inside the menu item, changing this (default): <li ..><a ..>Link</a></li>
<li ..><a ..>Link</a></li>
into this: <li ..><a ..><span>Link</span></a></li>
<li ..><a ..><span>Link</span></a></li>
Thanks for any help you can give me!
(@alchymyth)
http://codex.wordpress.org/Function_Reference/wp_nav_menu
try to use the ‘link_before’ and ‘link_after’ parameters; for instance:
<?php wp_nav_menu( array( 'sort_column' => 'menu_order', 'container_class' => 'menu-header', 'link_before' => '<span>', 'link_after' => '</span>' ) ); ?>