WordPress.org

Ready to get started?Download WordPress

Forums

wp_nav_menu before and after parameters not working (1 post)

  1. danpoynor
    Member
    Posted 2 years ago #

    Is there some way to get any of the before and after parameters to work with wp_nav_menu?

    Example code that's not working:

    wp_nav_menu( array( 'theme_location' => 'primary', '$before' => '<span>', '$after' => '</span>' ) );

    wp_nav_menu( array( 'theme_location' => 'primary', '$link_before' => '<span>', '$link_after' => '</span>' ) );

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.