This is an example of CSS code which works with one specific theme.
You may need to change the classes depending on your theme.
.nav-primary .current-menu-item > a {
color: blue;
background-color: white;
}
This will highlight the background color of the current menu item to white and you can also change the font color which in this case is blue.
Related Posts:
- adding some custom html code to the wp_nav_menu function
- Multi Level Bootstrap Navigation Menu in WordPress
- How do I add the data-toggle=”modal” data-target=”#myModal” attribures to a WP Nav bar?
- Bootstrap drop down menu with wp_nav_menu
- wordpress nav menu using twitter bootstrap
- HTML Bootstrap navigation menu to WordPress menu using wp_nav_menu
- Output the aria-labelledby parameter for a nav menu child
- Add Bootstrap dropdown class to a nav menu
- Nav walker, bootstrap: Display 3rd level items under 2nd level
- Make compatible custom menu widget for Twitter Bootstrap
- Loop through Navbar, Output Icons
- How can I remove data-target=”#” from bootstrap dropdown menu?
- Make menu bootstrap compatible
- Main Menu and Sub Menu Items for Footer
- How to add class to and childs of sidebar widget – WordPress
- How to have two menus using Bootstrap nav walker?
- Side Menu Icon Expandable
- WordPress Walker – Group two items?
- Sticky Header in WordPress using BootstrapWP theme [closed]
- WordPress + Bootstrap [closed]
- wp_nav_menu not displaying the right way
- Bootstrap button menu on wordpress
- wp_get_archives doesn’t take effect from css or html
- Make two bootstrap menus collapse into one dropdown
- WP nav menu + Bootstrap, add role=”menu” to UL
- Responsive menu on genesis theme [closed]
- Bootstrap menu – make menu entries with submenu not clickable
- Bootstrap Menu bar shows up a toggle in Desktop Mode
- WordPress + Bootstrap: Replace primary navigation menu on mobile?
- Stuck while adding bootstrap navwalker class
- How to use Bootstrap Navbar in wordpress Nav Menu
- Navbar is hidden behind carousel when using wp-boostrap-navwalker
- How to create a mobile menu full screen overlay using Understraps Bootstrap 4 theme
- Bootstrap Nav Walker Sub Menu Image
- Change menu for mobile
- How to change navwalker’s dropdown mark-up?
- Bootstrap navbar responsiveness on WordPress theme menu not working
- Broken drop down menu using Bootstrap and navwalker class
- nav tag wrapping around dropdown
- Convert a custom bootsrap based menu to wordpress nav walker
- WordPress nav Walker – Bootstrap 5.2.3 – submenu not opening
- Nav walker bootstrap: Display 3rd level and 4th level in dropdown menu
- Split up wp_nav_menu with custom walker
- how to create a menu with all sub categories?
- How to change order of menu items
- Add Commas Between Menu Items?
- Allow html tags in WordPress Custom Menus Description Field
- Add custom attribute to menu item link using Filter
- Remove nav menu or menu item
- Adding a within ‘s from wp_nav_menu()
- Building a Sub-menu: Display Parent Category/Page’s Children When Viewing Children
- Getting stripos error when trying to add menu classes
- Custom Walker for Walker_Nav_Menu
- Different side menu on each page
- Automatically generated menu
- Variables within wp_nav_menu
- 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
- Schedule Page to Menu [duplicate]
- How can I add items to the menu via the PHP file?
- Limit the menu child levels under “admin > appearance > menus”
- display menus on all page except one?
- Show Menu from one WordPress install in another WordPress install
- Check if Page Already Exists in Menu
- Is this format possible with a custom Nav Walker class?
- Add code to WordPress menu items by class
- Move Sticky Nav Menu Below WordPress Tool bar when tool bar enabled
- Prevent menu from loading in a page template [duplicate]
- How to use wp_nav_menu with hashtag links?
- Rename menu items for All except super admin
- Displaying Nav Menu
- Get Menus In Header.php FIle
- Custom register_taxonomy ins’t showing custom Nav menu
- Conditional menus based on page title
- How to test if a specific page is the front page?
- Menu deletes all items and position – wordpress bug?
- Mobile navigation is shown, but standard navigation does not disappear
- How to add active class to separate page link?
- How are methods of class Walker_Nav_Menu invoked?
- How to get the Page Name of the current page?
- Add/remove image from navigation bar
- Swap out a page that is a parent to a many many pages
- How can I order these pages in this navigation bar on this old wordpress theme?
- Modifying Woocommerce menu based on tags and categories
- Add href to tag in nav menu for mobile
- Creating custom vertical menu
- Enable identical menu on network sites
- Show navigation header menu by post and categery
- Custom location for menu
- No indication of menu
- How to select single category in menu if post have two categories?
- menu is only pulling in one item
- How to get current menu item “CSS Classes” value?
- How to change page location in WordPress
- Update nav menu item position programmatically
- Navigational error
- How can I disable sorting/dragging of a menu item in the custom menu admin?
- How to add or remove borders in navigation menu?
- Header not showing in new pages