Forums

Using CSS Sliding Doors with wp_nav_menu? (2 posts)

  1. dudemanthing
    Member
    Posted 1 year 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>

    into this:
    <li ..><a ..><span>Link</span></a></li>

    Thanks for any help you can give me!

  2. alchymyth
    The Sweeper
    Posted 1 year ago #

    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>' ) ); ?>

Topic Closed

This topic has been closed to new replies.

About this Topic