Do you want the same image for each menu item?
.menu-item a:before {
content: url("/path/to/image.png");
display: inline-block;
}
The menu items should already have an ID on each <li>
li#menu-item-274 a:before {
content: url("/path/to/another/image.png");
}
Failing that, you can implement your own Bootstrap Navwalker and add whatever classes or images you like.
See: https://developer.wordpress.org/reference/classes/walker/ and https://github.com/wp-bootstrap/wp-bootstrap-navwalker for how to create your own.
Update:
A final suggestion, based on your comment is to use Advanced Custom Fields so that you can add an image field against each menu item. See this link for details: https://www.advancedcustomfields.com/resources/adding-fields-menu-items/
Related Posts:
- Multi Level Bootstrap Navigation Menu in WordPress
- HTML Bootstrap navigation menu to WordPress menu using wp_nav_menu
- Add Bootstrap dropdown class to a nav menu
- Make compatible custom menu widget for Twitter Bootstrap
- How to have two menus using Bootstrap nav walker?
- How Do I Add Images To Main Navigation Menu
- Make two bootstrap menus collapse into one dropdown
- WordPress + Bootstrap: Replace primary navigation menu on mobile?
- Navbar is hidden behind carousel when using wp-boostrap-navwalker
- Nav walker bootstrap: Display 3rd level and 4th level in dropdown menu
- How to modify navigation menu of the “My Account” page in WooCommerce
- Custom ID for certain menu item?
- Add data-icon input to WordPress custom menu links
- Show current navigation path from menu
- How do I add the data-toggle=”modal” data-target=”#myModal” attribures to a WP Nav bar?
- wordpress nav menu using twitter bootstrap
- Add class to active top level (grandparent) menu item
- How to get Menu Navigation Labels to output HTML
- custom menu not found
- Number of items in a menu
- wp_nav_menu doesn’t generate parent/ancestor classes
- How to add text before WordPress menu item href
- Nav walker, bootstrap: Display 3rd level items under 2nd level
- Add an extra field to the navigation menu box?
- How do i style the current menu anchor link’s parent anchor link? [closed]
- Does the menu item ID ever change?
- 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?
- has_children in custom nav_walker
- How to have custom menu Item CSS Classes for wp_page_menu() or wp_list_pages()
- How to fix “Supplied nav_menu_item value missing property” after update to WordPress 5.0
- Make menu bootstrap compatible
- Main Menu and Sub Menu Items for Footer
- wp_nav_menu including Skype URL
- How to add class to and childs of sidebar widget – WordPress
- Multiple WordPress Menus that will only display all pages
- Change an li class name in a wordpress custom menu walker
- Separator for custom nav menu
- How do I add recent posts to the menu?
- Conditional secondary menus
- Side Menu Icon Expandable
- Making a navigation header menu with bulma, need some advice
- Determine the last child of the parent menu WP Nav Walker
- Nav and logo loading each time causing menu to move JointsWP – Foundation 6
- Navigation doesn’t render when wp is hosted
- Using _s theme, menu changes do not affect header menu
- How to get rid of the home link in nav menu?
- Is it possible to add a dynamic link in the main navigation in a child theme
- display menu as table layout
- Bootstrap button menu on wordpress
- Show children (sub-navigation) of active menu item only
- Menu Arrow for Child Element
- Adding an external link to wordpress menu
- How to make wordpress nav menu use post custom meta data
- add another html tag after li element in wp_nav_menu
- Twenty Fifteen: Change navigation menu behavior
- WP nav menu + Bootstrap, add role=”menu” to UL
- Odd spacing in Navigation Bar [closed]
- wp_list_pages Hierarchical Help
- How to avoid the and which added when custon menu widget is used
- Display pictures instead of text in menus
- How to add a menu that belongs to parent blog to all child-blogs?
- How to change how WordPress renders navigation menu on Block Themes
- Problem with links once in portfolio item
- url_to_postid method in walker_nav navigation menu causing exceptionally high TTFB
- Add Different Class on Different Ul in twenty-twentyone theme
- Bootstrap Menu bar shows up a toggle in Desktop Mode
- Is it all right to put the whole tag into template_part file?
- wp_nav_menu container style args
- Misleading behaviour on Menu & Theme location
- How can I click the parent menu then redirect to a special URL?
- Stuck while adding bootstrap navwalker class
- How do I display menu in header without loosing styles?
- Adding additional html to the end of the root level in a custom nav walker
- Change menu for mobile
- Navigation bar is on live site but nothing under menu so can’t add in a page
- Show thumbnail to category items in wp_nav_menu(), how?
- Add data-track to links in menu
- Conditional Nav Menu Inside Nav Menu Across Multisite Sites
- 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?
- Check in walker if current page is descendant
- Active page link not getting class assigned
- Customize Walker_nav_menu to show posts if item is category
- Replace Menu Item with Logged in username
- Where these arguments are defined?
- Show All Children of WordPress Menu
- Navigation list not correctly styled on pages with custom template (missing .current-menu-item)
- How to make an anchored page in a navigation menu tab
- How was this menu system created?
- Broken drop down menu using Bootstrap and navwalker class
- nav tag wrapping around dropdown
- Two Homes In Navigation Menu
- How to set menu Display location
- Render link description in navigation block
- wp_nav_menu parent in submenu
- Primary menu item is not highlighting when page is active even though it is linked from a url with query string to pre-populate a form field