Take a look here for #1: remove li class & id for menu items and pages list
Regarding items #2 and #3, why not just do this with CSS? The separators shouldn’t be in their own <li>
tags anyway. The following CSS will add a |
after each menu item, except the last.
#topMenu ul li a:after {
content: "|";
display: inline-block;
margin-left: .618em;
width: 1em;
}
#topMenu ul li:last-child a:after {
display: none;
}
Related Posts:
- Split up wp_nav_menu with custom walker
- New post notification in wp_nav_menu
- WordPress Menu Custom Walker Class
- How to change order of menu items
- How to use a WordPress’ existing admin icon?
- Add Commas Between Menu Items?
- Allow html tags in WordPress Custom Menus Description Field
- Show child pages by menu order using Superfish Dropdown menu?
- Bootstrap drop down menu with wp_nav_menu
- Remove nav menu or menu item
- One site, 2 distinct sections: two different top nav menus?
- Can you have different menus and theme on a per-page basis?
- Adding a within ‘s from wp_nav_menu()
- Getting stripos error when trying to add menu classes
- Display link with current user’s username in it in Custom Menu
- Add class to menu ul with active child
- jQuery cookie not working properly in wordpress
- Make compatible custom menu widget for Twitter Bootstrap
- Different side menu on each page
- Automatically generated menu
- Variables within wp_nav_menu
- Admin only menu/page
- wp_update_nav_menu_item not saving in multisite API
- Header style different on home and remaining pages
- Pass GET params to URL from a main menu item
- wp_nav_menu_items filter :: custom menus fall outside ul class
- WP MU: Using pages from main site in other sites’ menus
- How can I add items to the menu via the PHP file?
- Limit the menu child levels under “admin > appearance > menus”
- WordPress warning: “private_to_published” Deprecated when creating nav with wp_update_nav_menu_item()
- display menus on all page except one?
- Is this format possible with a custom Nav Walker class?
- two different separate sections on the same site
- How to customize submenus isn wordpress theme [closed]
- custom walker nav issue involving ajax
- How to add html attributes to the “ul” html tag with “wp_nav_menu” function?
- Can I have a different menu for each parent page?
- Conditional menu display
- Give child-categories same class (the parent category-slug) as parent in menu list?
- How Do I Add Images To Main Navigation Menu
- Combine 2 categories in one Menu item
- Wrap list parent in div with wp_nav_menu menu
- How to add a element with walker menu right after begin of the navigation tags?
- Custom Menu not functioning properly
- Using front-page.php need new blog page
- Is it still not possible to show separate submenu with “Custom Menu”?
- Three menus – parent / child / sibling
- Rename the label on a menu location which is already defined?
- How to making dynamic URLs for menus in WordPress?
- Increase wordpress menu Depth
- swap out only main menu for logged in users
- Hide pages from the main menu
- How to customize the built in menu in wordpress?
- Current author archive in navigation menu
- Adding CSS-class to WordPress Menu in backend
- How to change the menu like this?
- Custom ul class
- Admin Menu Hack (Left side in Dashboard)
- How to open a lightbox form from a navigation menu item
- How to manipulate attributes of url-less dropdown item in a the custom wordpress menu?
- How do I remove this menu bar?
- Hide custom menu when when no menu selected
- nav-menu-template and columns in sub menu
- Auto delete menu items with zero products (woocommerce)
- Custom link with checkbox that adds additional word to checked menu items
- menu not showing on mobile view
- Why is my navigation in my onepage not working?
- Admin menu in different languages
- Navigation item – current date in url
- Edited one page in my working menu and now all menu buttons don’t open unless I right-click and open in new tab
- Need help with Walker_Nav_Menu class
- Impossible to remove page from menu
- why are my walker menu is showing like this?
- Menu with sub-items but without link
- Bootstrap Nav Walker Sub Menu Image
- What are some of your favorite methods for creating an accessible menu?
- Creating navigation out of specific IDs and their children?
- Add active class to wp_nav_menu
- How to get all the menu listed in Menus Created inside the Apperance Menu?
- how to configure this type of menu
- Migrate WP Menu between sites
- Add Class to Custom Menu Widget ul
- Add parent link to its submenu
- Can’t change link for navigation item
- How to style wp_nav_menu?
- Show Child of Parent Page including all other parents
- Loading wordpress menu in an external server
- Need direction on a seemingly complex menu walker for automatically inserting a parent link li in it’s submenu ul
- Show only second level menu items? [duplicate]
- Add item ONLY to the primairy navigation
- wp_nav_menu in 3.7 add name class nav navbar-nav
- individual images as navigation design TwentyTen
- Is there a limit to number of pages displayed for selection in custom menu?
- Add monthly archives menu and submenu
- wp nav menu – highlighting current page not working properly [closed]
- register_nav_menus and wp_nav_menu issue, not displaying independent menus
- Convert a custom bootsrap based menu to wordpress nav walker
- How do I get the menu items based on name or ID?
- Menu problem : when add wordpress element in menu it convert into empty custom link
- Problems with the navigation menu