What you want is invalid markup. The only children an ul
can have are li
. Use CSS instead:
#nav ul
{
padding-top: 40px; /* Your image size. */
background: url(/path/to/your/image/img.png) top center no-repeat transparent;
}
Related Posts:
- How to move parent li to end of child ul
- How do i style the current menu anchor link’s parent anchor link? [closed]
- Grey out nav buttons unless is_user_logged_in()
- Static page to one page- menu inactive items highlighted
- How Do I Add Images To Main Navigation Menu
- display menu as table layout
- Menu Arrow for Child Element
- How to buid wordpress menu with auto width sub-menu items in dropdown menu without any items sharing one line [closed]
- How to add css to single navigation text? [closed]
- Odd spacing in Navigation Bar [closed]
- wp_nav_menu container style args
- Add/remove image from navigation bar
- Additional CSS for the nav menu
- Disable Top Nav Bar on Mobile
- Active page link not getting class assigned
- individual images as navigation design TwentyTen
- How to add or remove borders in navigation menu?
- Site navigation sits unstyled for a second on page reload [closed]
- Custom ID for certain menu item?
- Show current navigation path from menu
- How to apply a class to the second word in menu list item?
- Add class to active top level (grandparent) menu item
- Styling child custom menu pages
- How to get Menu Navigation Labels to output HTML
- custom menu not found
- wp_nav_menu doesn’t generate parent/ancestor classes
- How to add text before WordPress menu item href
- Add an extra field to the navigation menu box?
- Custom Post type menu highlighted in the archive/post
- Hide and show menu subpages
- Benefits of using Nav Walker?
- Use walker for specific menu, or avoid use of walker
- Change where navigation bar links?
- Page-Linking Structure
- Altering html structure and creating custom menus
- Get admin menu link
- wp_nav_menu including Skype URL
- How to add class to and childs of sidebar widget – WordPress
- How to have two menus using Bootstrap nav walker?
- Hide Hamburger Menu On Specific Page (Front Page/Home Page)
- CSS for Created Menu “Active Selected” not working, everything else is!
- How do I add (css) class to a custom link to make it current_page_item
- Making a navigation header menu with bulma, need some advice
- How to have the Header show different content on different pages?
- Determine the last child of the parent menu WP Nav Walker
- Navigation doesn’t render when wp is hosted
- wp_nav_menu() doesn’t work
- Does is_child() exist in wp 3.5.1?
- Add span in top menu item with nested itens
- How to create a menu with pages and post categories?
- remove specific classes from menu items
- set certain item in nav walker to active when on archive pages or singles
- wp_nav_menu() | Outputting my own custom code using built in features
- Remove a class from a using Walker
- Menu Custom Data Attributes
- The cart, checkout, and shop links not getting removed
- Switch an entire nav menu if user is logged in
- wp_bootstrap_navwalker Fatal Error
- How to modify mobile nav menu text in theme
- WordPress functions.php does not affect the theme menus
- Display Menu Navigation Label
- Menu is not displaying on the site navigation [closed]
- Drop Down menu expanded by default (on front page) [closed]
- Wp Nav Menu div containers
- Costum walker with sub menu item count
- Updated WordPress, now Navigation is Messed Up
- Possible to append class to nav menu added to widget area?
- Making the menu toggled open on mobile devices Illustratr theme
- need help in wordpress navbar setup
- Can I now add a class in the anchor of my menu item with WordPress 5.4?
- WordPress + Bootstrap: Replace primary navigation menu on mobile?
- Navbar is hidden behind carousel when using wp-boostrap-navwalker
- Active Current Menu – Adding class to child theme
- display cart information within li of cart menu item
- Add data-track to links in menu
- Is it possible to seperate wordpress menu by different div?
- How to add odd and even classes to all nav links through walker?
- Output sort number in wp menu list item?
- Add newsletter signup element to navigation bar
- Check in walker if current page is descendant
- Active menu item / category
- Making a Custom Menu Sidebar Icon show as Current in css [closed]
- Customize Walker_nav_menu to show posts if item is category
- Menu not always using correct link
- Help with changing style of the extended menu drop down [closed]
- Where these arguments are defined?
- How do i keep my current page menu highlighted on pagination?
- Remove from wp_nav_menu() wordpress
- Styling Active Links Within WordPress
- Show All Children of WordPress Menu
- Problem with float:left – unexpected behavior [closed]
- How to make an anchored page in a navigation menu tab
- Changing color of specific tab of top menu
- Formatting WordPress Menus (without bullets, inline with text)
- Two Homes In Navigation Menu
- How to set menu Display location
- Active Navigation Class Based on URL on icon
- Hiding Widget On Mobile Devices Removes Our Product Search Box On Mobiles
- Rename Menu icon in Twenty seventeen theme
- Tried to hide navigation menu on one page ended up SCRAMBLING the navigation menu on another