I don’t recommend having anything in-between a ul and li.
If you make the anchor tag display:block that fills the list, the whole list tag will be clickable. So dont put any height, width, or padding on the list and manage it all instead with the anchor.
a {
display: block;
width: 100%;
}
Related Posts:
- Removing link ” from ” menu for some “links” without JS
- Links open only on new tab or window
- Adding different classes to anchor in navigation menu
- Page-Linking Structure
- Separator for custom nav menu
- Links do not open from click, only in new tab [closed]
- The cart, checkout, and shop links not getting removed
- Problem with links once in portfolio item
- Links in new menu don’t work
- Navigational error
- Split up wp_nav_menu with custom walker
- How to Add to Each Menu Link with link text to data-attr?
- Multi Level Bootstrap Navigation Menu in WordPress
- Determine if a navigation item has children
- Bootstrap dropdown nav pills not working with wp_nav_menu()
- How to move parent li to end of child ul
- Bar separated navigation by extending Walker_Page
- How to Create a Custom WordPress Navigation Menu with the Code?
- Custom Nav Walker sub-menu HTML construct
- Add class to menu ul with active child
- Make compatible custom menu widget for Twitter Bootstrap
- How to display dynamic content in start_lvl function
- Add custom text to menu
- Menu styling for last menu item
- Disable automatig SVG tag from menu
- Menus like a CMS
- Replace menu permalink/hyperlink with only menu name/slug
- wp_nav_menu add some element to container
- Use wp_nav_menu to display ALL pages
- Third level navigation class
- How to add a submenu toggle button inside all “li” elements that have a submenu?
- get_query_var(‘post_type’) not returning in a filter
- Admin only menu/page
- Find out if a page has no parent
- Prev / Next menu item
- Navigation Menus Depth for specific menus
- wp_nav_menu() with multiple Class
- add span class and i tag inside wp_nav_menu link anchor tag
- Can’t include Language switch in Nav Menu
- Add within the output of
- Grey out nav buttons unless is_user_logged_in()
- How to approach this menu design?
- Trying to Create Menu in WordPress
- Reuse a custom WordPress menu on another WordPress website
- How to dynamically populate a dropdown
- Is this format possible with a custom Nav Walker class?
- two different separate sections on the same site
- How do you add a around the second level of a Menu?
- How can I add text to a single nav menu item?
- Alternative to wp_get_nav_menu_items?
- Using my WordPress menu on another platform
- How Do I Add Images To Main Navigation Menu
- Add a submenu to wp_nav_menu
- Walker menu not displaying at all
- Hide menu from homepage
- remove menu items if user can’t read
- How to automatically redirect to first item of second navigation level in a multi-level menu?
- Locking in navigation labels before changing title?
- How to add columns to wordpress menu editor
- how to insert data in li tag of navigation
- How to Add support for sub-menu item description in wordpress?
- Current author archive in navigation menu
- Output Post ID for all nav_items
- Custom ul class
- How to create menu spread over four lines including images
- Additional navigation bar in header
- Help with WordPress Custom Nav Walker
- Why is my navigation in my onepage not working?
- Navigation item – current date in url
- Hide a menu (navigation bar) on all posts
- Bootstrap Theme Migrated to WordPress
- WordPress Menu Navigation links not working
- Bootstrap Nav Walker Sub Menu Image
- Where to place a svg chevron down in my custom walker?
- How to apply individual menu item’s “CSS Classes” to , not ?
- Output existing wp_nav_menu with a custom walker
- how to split vertical menu into two columns using walker nav menu
- Sub-Items Not Visible in Navigation
- How can I create this menu with wp_nav_menu()?
- Header lists posts instead of showing primary nav menu
- Menu Details Output in Javascript [closed]
- Show Child of Parent Page including all other parents
- Can’t add optional class to menu item when using Walker_Nav_Menu
- nav_menu: how to force a subpage switching on the parent menu
- wp_dropdown_nav function to list menu items
- wp_nav_menu() reutrns HTTPS?
- Show content of subdomain from specific menu-item?
- Show only second level menu items? [duplicate]
- Add item ONLY to the primairy navigation
- Update nav menu item position programmatically
- Determine if a navigation item has children
- Image menu on responsive WordPress
- Remove link from Page name in navigation bar
- individual images as navigation design TwentyTen
- WordPress Navigation default output
- Display Username as parent menu item
- How to add or remove borders in navigation menu?
- Custom navigation / menu output (walker?)
- Navigation menu displays permalinks
- Tried to hide navigation menu on one page ended up SCRAMBLING the navigation menu on another