Add customisation to allow line and text-only entries to the output of WordPress wp_ nav _menu function. Edit your menu in the Appearance section of wp-admin. Add a custom link entry, then use (three dashes) as link text for a horizontal line or use # as a URL for an unlinked menu entry. Usage, Easily remove the trailing divider when adding dividers to WordPress navigation menus using wp_nav_menu. Add Navigation Dividers With wp_nav_menu Without Trailing Divider WP_Nav_Menu is an excellent addition to WordPress, allowing clients to quickly edit navigation menus so developers dont have to be on call to change simple links.
If you can’t figure out the exact place to put this line , you can do a folder-wide search for wp_nav_menu in your theme & then update your question copy-pasting some nearby code & then someone here will tell you the exact place . This should get the divider in place but you’ll most probably also need some CSS.
7/9/2013 · This post quickly documents a method to add a list separator to a WordPress menu with Twitter Bootstrap based themes. Print your WordPress menu in your themes template with something like this (note the link_after value): wp_nav_menu ( array ( ‘theme_location’ => ‘primary’, ‘link_after’ => ‘ ‘, ‘menu_class’ => …
8/27/2013 · nav _menu(‘menu=your-nav-name’) ?> … The divider will show up right after each menu item, because I am using the after selector. If you prefer, you can use the before selector to have your seperator displayed before your WP menu items. Here.
$ divider _html = ‘ ‘ wp_ nav _menu( array( ‘theme_location’ => ‘my_menu’, ‘ divider _html’ => $ divider _html ) ) The above example would create a menu with the $ divider _html specified above in the middle of the markup.