Title: WP Navigation
Last modified: August 19, 2016

---

# WP Navigation

 *  [baszer](https://wordpress.org/support/users/baszer/)
 * (@baszer)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/wp-navigation-1/)
 * Hi,
 * as you probably know you can [edit the menu](http://codex.wordpress.org/Function_Reference/wp_nav_menu)
 * so this is the default:
 *     ```
       <?php $defaults = array(
         'theme_location'  => ,
         'menu'            => ,
         'container'       => 'div',
         'container_class' => ,
         'container_id'    => ,
         'menu_class'      => 'menu',
         'menu_id'         => ,
         'echo'            => true,
         'fallback_cb'     => 'wp_page_menu',
         'before'          => ,
         'after'           => ,
         'link_before'     => ,
         'link_after'      => ,
         'depth'           => 0,
         'walker'          => );
       ?>
       ```
   
 * what if I want a seperation character | and i want to add a class. Can somebody
   give me the example?

Viewing 6 replies - 1 through 6 (of 6 total)

 *  [Devin Price](https://wordpress.org/support/users/downstairsdev/)
 * (@downstairsdev)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/wp-navigation-1/#post-1802324)
 * The $after argument is what you’re after.
 *     ```
       <?php $defaults = array(
         'theme_location'  => ,
         'menu'            => ,
         'container'       => 'div',
         'container_class' => ,
         'container_id'    => ,
         'menu_class'      => 'menu',
         'menu_id'         => ,
         'echo'            => true,
         'fallback_cb'     => 'wp_page_menu',
         'before'          => ,
         'after'           => ' | ',
         'link_before'     => ,
         'link_after'      => ,
         'depth'           => 0,
         'walker'          => );
       ?>
       ```
   
 * Items should get a dynamic class applied to them that you can style. Or you can
   always do .menu li if you want to style them all.
 *  Thread Starter [baszer](https://wordpress.org/support/users/baszer/)
 * (@baszer)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/wp-navigation-1/#post-1802337)
 * thank you,
 * i got it after i posted it 😉
 * but no i have another problem. After the last menu item I dont want a ‘ | ‘ symbol.
 * How to get rid of that?
 *  [Devin Price](https://wordpress.org/support/users/downstairsdev/)
 * (@downstairsdev)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/wp-navigation-1/#post-1802351)
 * I thought you want something after the a tag?
 * Just update
 *     ```
       'after'           => ' | ',
       ```
   
 * to whatever you want. Leave it blank if you don’t want anything:
 *     ```
       'after'           => '',
       ```
   
 *  [Devin Price](https://wordpress.org/support/users/downstairsdev/)
 * (@downstairsdev)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/wp-navigation-1/#post-1802352)
 * Oh nevermind, now I understand the question.
 * Try doing it with css instead. Add a right border to all the items, and then 
   remove it from the last one.
 *  [solaxay](https://wordpress.org/support/users/solaxay/)
 * (@solaxay)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/wp-navigation-1/#post-1802353)
 * Im sorry of all for my English.
 * I have a problem with my jQuery + Css menu.
 * demo: [http://meqasigorta.az/11.html](http://meqasigorta.az/11.html) it’s work
   cool. but it dont work in my wordpress theme header.php
 * [http://meqasigorta.az/index2.php](http://meqasigorta.az/index2.php)
 * please help me….
 *  Thread Starter [baszer](https://wordpress.org/support/users/baszer/)
 * (@baszer)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/wp-navigation-1/#post-1802361)
 * > Try doing it with css instead. Add a right border to all the items, and then
   > remove it from the last one.
 * how to remove the last border with css?

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘WP Navigation’ is closed to new replies.

## Tags

 * [menu](https://wordpress.org/support/topic-tag/menu/)

 * 6 replies
 * 3 participants
 * Last reply from: [baszer](https://wordpress.org/support/users/baszer/)
 * Last activity: [15 years, 6 months ago](https://wordpress.org/support/topic/wp-navigation-1/#post-1802361)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
